I hope you are having a great day! I am trying to embed a NEW Google site into another web page. I am trying to use an iframe to embed the Google site but it doesn't work.
code line:
<iframe width="1280" height="720" src="" frameborder="0" scrolling="yes"></iframe>
console error:
Refused to display ';continue=' in a frame because it set 'X-Frame-Options' to 'DENY'.
I hope you are having a great day! I am trying to embed a NEW Google site into another web page. I am trying to use an iframe to embed the Google site but it doesn't work.
code line:
<iframe width="1280" height="720" src="https://sites.google./view/dm-viewer-samples" frameborder="0" scrolling="yes"></iframe>
console error:
Refused to display 'https://accounts.google./ServiceLogin?passive=1209600&continue=https://sites.google./s/1qcUAedTDdwcpfVAuSclwMF0K0bM2o2Lq/edit?userId%3D0' in a frame because it set 'X-Frame-Options' to 'DENY'.
Share Improve this question asked Dec 28, 2017 at 13:29 Tom CohenTom Cohen 1251 gold badge2 silver badges9 bronze badges1 Answer
Reset to default 6As is said in this post answer you can't include this site into an iframe due the HTTP header:
X-Frame-Options: SAMEORIGIN