如何让 Google+在 HTML 框架中加载环聊?
我猜 Google 已经找到了一种方法来阻止 Google+ 在 iFrame 中加载,因为我可以输入 https://www .google.com/ 进入页面框架,我无法对 https://plus 执行相同操作。 google.com/。它只是给出一个空白页。我正在尝试在我的自定义页面中嵌入环聊。谁能告诉我为什么这不起作用以及是否有办法让它起作用?我想做的就是在环聊之外添加一些小部件。以下是 Google 在 Firefox 中返回的标头:
(Status-Line) HTTP/1.1 200 OK
Content-Type text/html; charset=UTF-8
X-Frame-Options SAMEORIGIN
P3P CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
Content-Encoding gzip
Date Wed, 28 Sep 2011 07:23:04 GMT
Expires Wed, 28 Sep 2011 07:23:04 GMT
Cache-Control private, max-age=0
X-Content-Type-Options nosniff
X-XSS-Protection 1; mode=block
Content-Length 674
Server GSE
在 Chrome 中,它只是说页面没有响应。
I'm guessing Google has found a way to stop Google+ from loading in an iFrame, because whereas I can put https://www.google.com/ into a page's frame, I can't do the same with https://plus.google.com/. It just gives a blank page. I'm trying to embed a hangout in my custom page. Can anyone tell me why this isn't working and if there is a way to make it work? All I want to do is add some widgets outside of the Hangout. Here is the header that Google is returning in Firefox:
(Status-Line) HTTP/1.1 200 OK
Content-Type text/html; charset=UTF-8
X-Frame-Options SAMEORIGIN
P3P CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
Content-Encoding gzip
Date Wed, 28 Sep 2011 07:23:04 GMT
Expires Wed, 28 Sep 2011 07:23:04 GMT
Cache-Control private, max-age=0
X-Content-Type-Options nosniff
X-XSS-Protection 1; mode=block
Content-Length 674
Server GSE
In Chrome, it just says the page is not responding.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,那太愚蠢了......它盯着我的脸:
X-Frame-Options SAMEORIGIN
https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header
Okay, that was dumb... it was staring me in the face:
X-Frame-Options SAMEORIGIN
https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header