加载资源失败:net::ERR_BLOCKED_BY_RESPONSE [英] Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE
本文介绍了加载资源失败:net::ERR_BLOCKED_BY_RESPONSE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找iframe这个问题的一些解决方案
domain.com/:1 拒绝在框架中显示domain.com/?q=node/add/editor",因为它将X-Frame-Options"设置为sameorigin".domain.com/?q=node/add/editor加载资源失败:net::ERR_BLOCKED_BY_RESPONSEdomain.com/:1 拒绝在框架中显示domain.com/?q=node/add/editor",因为它将X-Frame-Options"设置为sameorigin".pay.webintellizer.com/?q=node/add/editor加载资源失败:net::ERR_BLOCKED_BY_RESPONSE
仅供参考,如果有任何特殊代码,这两个站点都是基于 drupal 的.我已经为 iframe 测试了相同的域和不同的域,但相同的错误.
解决方案
如
I am looking for some solution of this issue of iframe
domain.com/:1 Refused to display 'domain.com/?q=node/add/editor' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
domain.com/?q=node/add/editor
Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE
domain.com/:1 Refused to display 'domain.com/?q=node/add/editor' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
pay.webintellizer.com/?q=node/add/editor
Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE
FYI both sites are drupal based, if it has any special code. I have already tested same domain and different domain both url for iframe but same error.
解决方案
As explained on https://stackoverflow.com/a/33777934/195812 check your x-frame-options value
... they have disallowed loading of the resource in an iframe outside of their domain. So this iframe is not able to display cross domain.
这篇关于加载资源失败:net::ERR_BLOCKED_BY_RESPONSE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文