如何在iframe中打开谷歌链接? [英] how to open google links inside iframe?

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

问题描述

我正在尝试在iframe中打开Goog​​le搜索。它一直工作到最近,但事情发生了。

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中打开谷歌链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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