【发布时间】:2018-02-15 10:11:23
【问题描述】:
我正在使用 iframe 在其上显示日历。但我不断收到以下信息;
拒绝在框架中显示“https://cal.mixmax.com/user1”,因为 祖先违反了以下内容安全策略指令: “框架祖先'自我'https://mail.google.com https://inbox.google.com https://.force.com https://.mixmax.com"。
我尝试将 Content-Security-Policy 的元数据设置为如下,但没有成功。
<meta http-equiv="Content-Security-Policy"
content="frame-ancestors 'self'
https://mail.google.com
https://inbox.google.com
https://*.force.com
https://*.mixmax.com">
知道如何克服它吗?
【问题讨论】:
标签: iframe content-security-policy