how to open google links inside iframe?(如何在 iframe 中打开谷歌链接?)
问题描述
我正在尝试在 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 中打开谷歌链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 iframe 中打开谷歌链接?


- Laravel 仓库 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01