【发布时间】:2015-11-14 06:03:08
【问题描述】:
我正在使用iframe 加载第三方网站。不是(youtube,linkedIn)它是前:zomato
它在 chrome 中不起作用。它在控制台中这样说
Refused to display 'https://www.zomato.com/' in a frame because an ancestor violates the
following Content Security Policy directive: "frame-ancestors 'self'".
但同样的事情在 safari 浏览器中工作。
【问题讨论】:
-
这是因为 Zomato 受 SSL 证书保护,Chrome 不允许您在 HTTP 环境中显示 HTTPS 内容。查看stackoverflow.com/questions/3144986/http-https-iframe了解更多信息
标签: html security google-chrome iframe content-security-policy