Buj*_*jji 5 iframe google-analytics
我在一个标签上登录了我的谷歌分析(我试过Firefox 3.6和Chrome),在另一个标签上,我打开了桌面(或我的wamp服务器)上的这个简单的HTML代码
<iframe height="100%" frameborder="0" width="100%" src="https://www.google.com/analytics/reporting/dashboard" allowtransparency="true"></iframe>
Run Code Online (Sandbox Code Playgroud)
我希望它能在iframe中显示Google Analytics数据.但它只是显示一个空白屏幕(我试过Gmail,而且还显示空白)
我错过了在iframe中显示的任何内容吗?
我可以使用Google Analytic API来获得结果,这是完全不同的.我的案例显示已经在iframe中登录了Google帐户
有几个Google产品会实现x-frame-options:SAMEORIGIN
HTTP标头,因此不允许它显示在iframe中,除非iframe放在google.com页面上.出于安全原因,这样设置.避免点击劫持攻击.
归档时间: |
|
查看次数: |
1687 次 |
最近记录: |