HTTPS 页面上的 HTTP iframe
我有一个简单的问题,但找不到我正在寻找的答案。
在安全 https 页面上加载的 http iframe 是否也受到保护?
I have a simple question, but can't find the answer that I'm looking for.
Is a http iframe that's loaded on a secure https page also secured?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
具有 http 源的 iframe 不会显示在 https 网站上,因为它被视为混合内容,并且 Chrome 等浏览器将阻止该内容并显示以下消息:
到目前为止我还没有看到允许混合内容的解决方案。
Firefox 有一个解决方案,该解决方案基于通过 HTTPS 域上托管的另一个网站重定向 iframe 源。
A iframe with http source will not be displayed on a https website as it's considered mixed content and browsers like Chrome will block the content with the following message:
So far I have not seen a solution to allow mixed content.
There has been a solution for Firefox which is based on redirecting the iframe source via another website that is hosted on the HTTPS Domain.
它不是自动的,您应该验证 iframe 的 src 是否通过 https 连接:
您的 iframe 不会扩展主页面的 https 访问。
It is not automatically, you should verify if the src of your iframe is connecting via https or not:
your iframe doesn't extend the https access from principal page.