拒绝显示,设置X框选项来SAMEORIGIN [英] Refused to display, set X-Frame-Options to SAMEORIGIN

查看:1681
本文介绍了拒绝显示,设置X框选项来SAMEORIGIN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有谁我有没有接触外部队建于ASP.NET的2008年一个很老的网站。突然一个页面似乎并没有在Chrome和FireFox正确渲染,但能正常工作与其他浏览器。页面设置与一个iFrame。

展望下检查元素(铬)未能使我看到错误的页面

 拒绝在该框架中显示http://www.example.com/somepage.html,因为它集X帧选项到SAMEORIGIN,SAMEORIGIN。

因此​​,阅读了几篇文章,我不能完全理解这一点,但在我看来,错误是,要求该域名将不能允许自己的框架内显示。

上面的网址是不是我熟悉的网址(例如第三方的,我没有任何与它的控制)。反正是有解决这个或者这纯粹是域名的拥有者就必须让?如果是这样,为什么它在其他浏览器?


解决方案

  

反正是有解决这个


不要你结束。


  

或这是纯粹的域的所有者将不得不以允许?



  

如果这样,为什么它在其他浏览器?


投机一点在这里,但 SAMEORIGIN,SAMEORIGIN 不是一个有效的值。它看起来像Chrome尝试错误恢复和治疗为 SAMEORIGIN

I have a very old site built in ASP .Net 2008 by an external team who I have no contact with. All of a sudden a page doesn't seem to render properly in Chrome and FireFox but works fine with other browsers. The page is set with an iFrame.

Looking under Inspect Element (Chrome) for the page failing to render I see the error

Refused to display 'http://www.example.com/somepage.html' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN, SAMEORIGIN'.

So read a few articles and I may not understand this fully but it seems to me the error is, the domain requested will NOT allow itself to be displayed within a frame.

The URL above is not the URL I am familiar with (i.e. its third party, I don't have any control with it). Is there anyway to resolve this or is this purely the owner of the domain would have to allow? IF so why does it work in other browsers?

解决方案

Is there anyway to resolve this

Not at your end.

or is this purely the owner of the domain would have to allow?

This

IF so why does it work in other browsers?

Speculating a little here, but SAMEORIGIN, SAMEORIGIN is not a valid value. It looks like Chrome is attempting error recovery and treating it as SAMEORIGIN

这篇关于拒绝显示,设置X框选项来SAMEORIGIN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆