简体   繁体   English

拒绝在框架中显示,因为它在JavaScript中将“X-Frame-Options”设置为“DENY”

[英]Refused to display in a frame because it set 'X-Frame-Options' to 'DENY' in JavaScript

I am trying to load url in iframe.I am getting the error Refused to display in a frame because it set 'X-Frame-Options' to 'DENY'.Can anybody tell how to overcome this error 我正在尝试在iframe中加载url。我收到错误拒绝在框架中显示,因为它将'X-Frame-Options'设置为'DENY'。任何人都可以告诉如何克服此错误

Thanks 谢谢

You can't, not for just any URL, however, if you own/can get in contact with the owner of the site, then you/they can allow your site to display the theirs in an <iframe> : 但是,您不能,不仅仅是任何网址,如果您拥有/可以与网站所有者取得联系,那么您/他们可以允许您的网站在<iframe>显示他们的网站:

The X-Frame-Options response header X-Frame-Options响应头

I disabled my antivirus. 我禁用了我的防病毒软件。 And it worked. 它奏效了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 拒绝在框架中显示“URL”,因为它将“x-frame-options”设置为“拒绝”。 但我没有使用 iFrame - Refused to display 'URL' in a frame because it set 'x-frame-options' is set to 'deny'. But i am not using iFrame 谷歌浏览器拒绝显示GoogleMaps Frame,因为X-Frame-Options设置为拒绝 - Google Chrome refused to display GoogleMaps Frame because X-Frame-Options is set to deny 拒绝在框架中显示,因为它将“X-Frame-Options”设置为 DENY facebook fb.ui 共享方法 - Refused to display in a frame because it set 'X-Frame-Options' to DENY facebook fb.ui share method 拒绝在框架中显示Facebook URL,因为它将“ X-Frame-Options”设置为“拒绝” - Refused to display Facebook URL in a frame because it set 'X-Frame-Options' to 'deny' Facebook画布:拒绝在框架中显示应用程序,因为它将“ X-Frame-Options”设置为“ DENY” - Facebook canvas: Refused to display app in a frame because it set 'X-Frame-Options' to 'DENY' 拒绝在框架中显示&#39;,因为它将&#39;X-Frame-Options&#39;设置为&#39;DENY&#39;。 在通过jQuery加载jsp时 - Refused to display ' in a frame because it set 'X-Frame-Options' to 'DENY'. at loading jsp by jquery 拒绝显示框架,因为它在 android webview 中将 X-Frame-Options 设置为“DENY” - Refused to display a frame because it set X-Frame-Options to 'DENY in android webview 拒绝在框架中显示“https://example.tld/”,因为它将“X-Frame-Options”设置为“拒绝” - Refused to display 'https://example.tld/' in a frame because it set 'X-Frame-Options' to 'deny' 拒绝在框架中显示“https://www.facebook.com/”,因为它将“X-Frame-Options”设置为“拒绝” - Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny' 拒绝显示在一个框架中,因为它将&#39;X-Frame-Options&#39;设置为&#39;SAMEORIGIN&#39; - Refused to display in a frame , because it set 'X-Frame-Options' to 'SAMEORIGIN'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM