尝试通过iframe访问页面时,页面抛出错误

时间:2019-03-24 19:40:59

标签: html iframe

我正在尝试通过iframe显示页面的一部分。这是一个solar log页,托管在连接到专用网络的集成Web服务器上。如果我通过浏览器访问该页面,它将显示所有数据,但是当我尝试使用iframe进行访问时,它会返回原始日志页面,但显示原始日志错误。因此,连接很好,我只是不知道为什么它会从浏览器更改为iframe。

这是我要用来访问该网站的iframe。

<div id="solar-log">
<iframe id="solarlogif" src="http://<the location of the web server>" sandbox="allow-same-origin allow-scripts"></iframe>
</div>

我在控制台中遇到的404错误是http://<the location of the web server>/emulate/

我希望页面以通过浏览器访问时的显示方式显示。我正在使用Firefox 41.0.1。

0 个答案:

没有答案
相关问题