考虑一下:
<html>
<frameset cols="50%,50%" frameborder=no border=no framespacing=no>
<frame src="http://site1.com">
<frame src="https://site2.com">
</frameset>
</html>
我已将此文件保存到myCompareFrames.html
并尝试使用google-chrome
打开它。
原因是彼此相邻有两个帧,所以我可以比较一些结果(而不是打开两个页面LOL)
然而,只会打开http
和不 https
(注意:这些网站都不在本地)
所以我的问题是:
注意:
如果没有这么简单的方法,我会很高兴解释为什么会发生这种情况,因为我很好奇,但我不会花太多时间讨论像这样的愚蠢问题。
答案 0 :(得分:0)
对于本地文件
<html>
<frameset cols="50%,50%" frameborder=no border=no framespacing=no>
<frame src="http://spiegel.de">
<frame src="https://www.wikipedia.org">
</frameset>
</html>
Firefox开发者版加载了两个页面。
然而,例如,使用stackoverflow.com
代替spiegel.de
时出现了问题。
因此,它可能与网站有关。作为猜测,可能是https元素(当然存在于SO)导致负载失败,与mixed-content protection(IE和Chrome也存在)相结合。 Web控制台显示没有错误。
至于为何是安全问题,请参阅f.ex. https://security.stackexchange.com/questions/38317/specific-risks-of-embedding-an-https-iframe-in-an-http-page