如何嵌入谷歌iframe? [英] How to embed google iframe?

查看:655
本文介绍了如何嵌入谷歌iframe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google似乎在阻止使用iframe的网站。当然,我使用谷歌的商标,并将其嵌入到iframe中。但是由于某种原因,它永远不会工作。



任何人都知道如何绕过它?

http://jsfiddle.net/EgurZ/



谢谢

解决方案

在现代浏览器中无法以任何方式绕过它,它们只是拒绝在发送 X-Frame-Options 标题,其中 DENY (或 SAMEORIGIN 已经足够)。它甚至没有归结为JavaScript。


Google seems to be blocking websites which use iframes. Of course I'm using google with its trademark and embedded it in an iframe. But for some reason it never works.

Anyone knows how to bypass it?

http://jsfiddle.net/EgurZ/

Thanks

解决方案

You cannot bypass it in modern browsers in any way, they simply refuse to display websites in iframe that send a X-Frame-Options header with DENY (or SAMEORIGIN is already enough). It doesn't even come down to javascript.

这篇关于如何嵌入谷歌iframe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆