最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Embed NEW Google sites to other web pages via iFrame - Stack Overflow

programmeradmin7浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 6

As is said in this post answer you can't include this site into an iframe due the HTTP header:

X-Frame-Options: SAMEORIGIN
发布评论

评论列表(0)

  1. 暂无评论