当 WebKit 和 Opera 位于框架中时,不会从此服务器加载
此网站在 Firefox 中可以正常加载,但在 WebKit 浏览器(Safari 和 Google Chrome)中则无法加载框架,而在 Opera 中我收到此错误:“该网站不允许其内容显示在框架中。它必须显示在单独的窗口中。”。我不希望能够真正解决这个问题,因为我无法控制框架页面(只能控制框架的内容),但我的问题是:为什么?
框架的内容本身可以正常加载,并保存框架页面并将框架的src更改为< a href="http://w3.org/" rel="nofollow noreferrer">http://w3.org/ 加载正常。我根据 Opera 错误进行了一些搜索,似乎表明它与重定向有关。该网址确实会重定向,但如果我将其更改为 http://mini.milli.no/tonje/ main (不重定向),它仍然不起作用。甚至 Apache 目录列表也不起作用 - 对我来说这表明它与服务器相关。但服务器如何才能做到这一点呢?
为了完全清楚,我使用的是 Mac OS X 10.6.3,并使用 Safari 4.0.5、Chrome 5.0.375.55、Opera 10.53 和 Firefox 3.6.3 进行了测试。基本上,这是目前所有这些东西中最新的。
This site loads fine in Firefox, but in WebKit browsers (Safari and Google Chrome) it won't load the frame, and in Opera I get this error: "The Web site does not permit its content to be displayed in a frame. It must be displayed in a separate window.". I don't expect to be able to actually fix this, as I don't have control over the frames page (only the content of the frame), but my question is: why?
The content of the frame loads fine by itself, and saving the frames page and changing the src of the frame to http://w3.org/ loads fine. I did a bit of searching based on the Opera error, and it seemed to suggest it had to do with redirecting. That URL does indeed redirect, but if I change it to http://mini.milli.no/tonje/main (which doesn't redirect), it still doesn't work. Even Apache directory listings don't work - which to me suggests it's server related. But how can a server do that?
To be total clear, I'm using Mac OS X 10.6.3, and I tested with Safari 4.0.5, Chrome 5.0.375.55, Opera 10.53, and Firefox 3.6.3. Basically, the newest of all of those things currently.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该站点在响应中设置以下标头
这是一个相对较新的标头,已添加以防止 ClickJacking,请参阅 链接了解更多信息
The site sets the following header in the response
This is a relatively new header that has been added to prevent ClickJacking, see Link for more info