无法加载资源:net :: ERR_BLOCKED_BY_RESPONSE

问题描述 投票:5回答:2

我正在寻找有关此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

仅供参考,如果有特殊代码,则这两个站点都基于drupal。我已经为iframe测试了相同的域和不同的域的URL,但是存在相同的错误。

iframe drupal-7
2个回答
9
投票

https://stackoverflow.com/a/33777934/195812中所述,检查您的[[x-frame-options值

...他们不允许在其域之外的iframe中加载资源。因此,此iframe无法显示跨域。

enter image description here


0
投票
hoyt友好,专业,超快。他很准时,准备了2种不同类型的锁,供我根据我们的需求和预算选择。他回答了我所有的问题,并在不到15分钟的时间内完成了锁栓的安装。他甚至要求在工作后清理簸pan和扫帚。绝对会再次使用它们。优质的服务。
© www.soinside.com 2019 - 2024. All rights reserved.