例如:
<iframe src="http://127.0.0.1:8008" style="width:100%;height:400px;"></iframe>
django的项目将不能被访问,只要设置如下即可:
X_FRAME_OPTIONS = 'ALLOWALL'
例如:
<iframe src="http://127.0.0.1:8008" style="width:100%;height:400px;"></iframe>
django的项目将不能被访问,只要设置如下即可:
X_FRAME_OPTIONS = 'ALLOWALL'
转载于:https://www.cnblogs.com/zhaojia-dream/p/5981447.html