网址未加载到iFrame黑屏中 [英] Url is not loading in iFrame Blank Screen

查看:300
本文介绍了网址未加载到iFrame黑屏中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<iframe src="http://bhasuri.ateesdemo.com/" height="600">
  <p>Your browser does not support iframes.</p>
</iframe>

此网址未加载到我的iframe代码中,

this url is not loading in my iframe tag,

推荐答案

之所以这样,是因为:

拒绝在框架中显示" http://bhasuri.ateesdemo.com/",因为 它将"X-Frame-Options"设置为"SAMEORIGIN".

Refused to display 'http://bhasuri.ateesdemo.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

X-Frame-Options SAMEORIGIN是由您请求资源的域设置的响应标头( http://bhasuri.在您的示例中为ateesdemo.com ).在这种情况下,他们已将标头设置为SAMEORIGIN,这意味着他们不允许在其域之外的iframe中加载资源.

X-Frame-Options SAMEORIGIN is a response header set by the domain from which you are requesting the resource (http://bhasuri.ateesdemo.com in your example). They have set the header to SAMEORIGIN in this case, which means that they have disallowed loading of the resource in an iframe outside of their domain.

有关更多信息,请参见:此链接

For more info refer : this link

这篇关于网址未加载到iFrame黑屏中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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