【发布时间】:2019-06-24 20:53:32
【问题描述】:
我有自己的个人作品集 (modestomata.com),我想在我的一些页面中包含一个 iframe 以及其他网站。例如,当我尝试将这个网站 (http://www.vivaelsoftwarelibre.com) 嵌入到 iframe 中时,效果很好:
<iframe src="http://www.vivaelsoftwarelibre.com" width="420" height="315" frameborder="0" allowfullscreen="allowfullscreen">
<iframe>
但是,当我尝试将我的个人 Google Scholar 页面 (https://scholar.google.es/citations?user=v4UtSKUAAAAJ&hl=en) 嵌入到我的作品集页面时,我得到一个空白 iframe。
<iframe src="https://scholar.google.es/citations?user=v4UtSKUAAAAJ&hl=en" width="420" height="315" frameborder="0" allowfullscreen="allowfullscreen">
<iframe>
那么,如何让 iframe 在其他页面中显示我的 Google Scholar 网页?
【问题讨论】:
-
如果您检查开发工具,您将看到“拒绝在框架中显示 'scholar.google.es/citations?user=v4UtSKUAAAAJ&hl=en',因为它将 'X-Frame-Options' 设置为 'sameorigin'。”
-
有什么办法可以解决这个问题吗?
-
X-Frame-Options 是从其服务器发送的响应标头。
-
所以,不可能吧?
标签: html wordpress iframe google-scholar