12

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.

user513951
  • 12,445
  • 7
  • 65
  • 82
Sunny Kasera
  • 449
  • 1
  • 7
  • 19
  • Most of the time this happens if you are trying to fetch the resource by using fetch method while you should only use link to point to this URL path – Mistico Jun 30 '22 at 09:30

1 Answers1

16

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.

enter image description here

Augusto
  • 2,125
  • 18
  • 27