我正在尝试在 iframe 中打开谷歌搜索.它一直工作到最近,但发生了一些事情.
i am trying to open a google search inside an iframe. it was working until recently but something happened.
这可以在这里测试:http://jsfiddle.net/patrioticcow/xTjyX/
我还在链接的末尾添加了 &output=embed,但看起来没有帮助.
i also added &output=embed at the end of the link, but it looks like it doesn't help.
在 chrome 中我得到:拒绝显示文档,因为 X-Frame-Options 禁止显示.但它也不适用于 Mozilla.
in chrome i get: Refused to display document because display forbidden by X-Frame-Options.
but it doesn't work in Mozilla also.
有什么想法吗?
谢谢
X-Frame 选项是由您尝试嵌入 iframe 的页面的网络服务器发送的标头.它基本上告诉浏览器不允许将页面嵌入到 iframe 中.看看 https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header 更详细的描述.
The X-Frame option is a header sent by the webserver of the page you are trying to embed into the iframe. It basically tells the browser not to allow embedding the page in an iframe. Have a look at https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header for a more detailed description.
显然,Google 不希望您将其搜索结果嵌入到 iframe 中.
Obviously Google does not want you to embed it's search results into an iframe.
这篇关于如何在 iframe 中打开谷歌链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
不能使用 'Object 作为类名,因为它是保留的Cannot use #39;Object as class name as it is reserved Cake 2.2.x(不能使用 Object 作为类名,因为它是保留的 Cake 2.2.x)
OAuth 重定向后会话丢失Session is lost after an OAuth redirect(OAuth 重定向后会话丢失)
Cakephp 3.x 中的分页排序Pagination Sort in Cakephp 3.x(Cakephp 3.x 中的分页排序)
CakePHP 多个应用程序的共享核心CakePHP Shared core for multiple apps(CakePHP 多个应用程序的共享核心)
在 CakePHP 3 上登录 [ Auth->identify() ] 始终为 falLogin [ Auth-gt;identify() ] always false on CakePHP 3(在 CakePHP 3 上登录 [ Auth-identify() ] 始终为 false)
致命错误:允许的内存大小为 134217728 字节已用尽Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes)(致命错误:允许的内存大小为 134217728 字节已用尽