Firefox阻止加载HTML iframe
我想使用HTML iframe加载另一个页面,但Firefox会阻止它,以避免安全问题。 我尝试将“https”转换为“http”,但它不起作用 Firefox显示的错误:Firefox阻止加载HTML iframe,html,firefox,iframe,Html,Firefox,Iframe,我想使用HTML iframe加载另一个页面,但Firefox会阻止它,以避免安全问题。 我尝试将“https”转换为“http”,但它不起作用 Firefox显示的错误: Firefox Can’t Open This Page To protect your security, anouar.stencila.io will not allow Firefox to display the page if another site has embedded it. To see this
Firefox Can’t Open This Page
To protect your security, anouar.stencila.io will not allow Firefox to display the page if another site has embedded it. To see this page, you need to open it in a new window.
这是使用的代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Reproducible Article</title>
</head>
<body>
<!-- The header of the file -->
<p>
<a
href="https://ojs3.josekarvalho.net/index.php/rp/article/view/87/176"
target="_blank"
>Link to HTML version</a
>
|
<a
href="https://ojs3.josekarvalho.net/index.php/rp/article/view/87/181"
target="_blank"
>Link to PDF version</a
>
</p>
<!-- The iframe to be shown - the link to the reproducible article allowfullscreen -->
<iframe
src="https://anouar.stencila.io/gentsch2020/"
frameborder="0"
style="position: absolute; top: 80px; left: 0; width: 100%; height: 100%"
scrolling="yes"
title="Reproducible Article"
></iframe>
</body>
</html>
可复制物品
链接到HTML版本
|
链接至PDF版本
该页面带有以下标题:
ALLOW-FROM
不受任何最新浏览器的支持,因此无法工作。如果可能,您需要使用SAMEORIGIN
,或者完全删除标题
X-Frame-Options可替换为
内容安全策略:帧祖先代码>,请参阅。在手机上,因此无法真正检查,但这听起来很像您尝试嵌入的网站发送了一个标题或类似的Iframe。如果您没有访问后端的权限,您将无能为力。@Kaido感谢您的回复,您指的是哪个后端?谢谢您的回答,但我不知道如何删除X-Frame-Options标题,我需要ojs3.josekarvalho.net的链接来调用具有此url的页面
x-frame-options: allow-from *.ojs3.josekarvalho.net