且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

加载资源失败:net::ERR_BLOCKED_BY_RESPONSE

更新时间:2022-10-19 19:17:54

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://***.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.