我怎样才能 <iframe>邮箱? [英] How can I <iframe> Gmail?
本文介绍了我怎样才能 <iframe>邮箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道 Gmail 可能会采取一些安全措施来防止这种情况发生,但我确实需要将 Gmail 放在一个元素中.
I know that Gmail might put some security measures in place to prevent this, but I really need to put Gmail inside an element.
以下两种方法不起作用:
The two following methods don't work:
<object type='text/html' data='http://mail.google.com/'></object>
<iframe src='http://mail.google.com/' frameborder=0 style='width:322px; height:480px;'></iframe>
还有其他方法吗?
推荐答案
你不能.GMail 与 Google 的大多数其他网络服务一样,设置 HTTP 标头:
You cannot. GMail, like most of Google's other web services, sets the HTTP header:
X-Frame-Options: SAMEORIGIN
不允许他们的网站被 GMail 本身以外的任何网站陷害.
which disallows their site from being framed by any site other than GMail itself.
这篇关于我怎样才能 <iframe>邮箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文