【发布时间】:2020-02-25 08:19:30
【问题描述】:
我的.htaccess 文件在目录中:
Header always set Content-Security-Policy "frame-src 'self' https://xxxx.de; frame-ancestors 'self' https://xxxx.de"
我的 iframe:
<iframe style="border: 0; position:fixed; top:0; left:0; right:0; bottom:0; width:100%; height:100%;" src="https://xxxx.de/test.html"></iframe>
但浏览器显示“内容安全策略”阻止网站加载外部内容。我该如何解决这个问题?
【问题讨论】: