[英]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>
显示他们的网站:
I disabled my antivirus. 我禁用了我的防病毒软件。 And it worked.
它奏效了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.