例如:

<iframe src="http://127.0.0.1:8008" style="width:100%;height:400px;"></iframe>

django的项目将不能被访问,只要设置如下即可:

X_FRAME_OPTIONS = 'ALLOWALL'

相关文章:

  • 2021-07-23
  • 2021-05-31
  • 2021-06-15
  • 2022-03-02
  • 2021-12-18
  • 2021-08-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-05-22
  • 2021-12-17
  • 2021-04-13
  • 2021-05-21
相关资源
相似解决方案