Getting an error when i try to inspect element in chrome:
Refused to display 'http://www.samplesite.com/' in a frame because it is set 'X-Frame-Options'
to 'SAMEORIGIN'
.
How to display a site inside an iframe in which the website has
'X-Frame-Options'
to 'SAMEORIGIN'
?
I tried searching on google but I could not find any proper solution, some are for asp.net only.
Web server conf,
for me i use nginx.conf
find add_header X-Frame-Options SAMEORIGIN;
and change it toadd_header X-Frame-Options "ALLOWALL";
Your web server sends the header and blocks the content. You should probably change this setting to Allow from same origin.