【发布时间】:2016-10-30 07:08:25
【问题描述】:
我想使用 iframe 在我的网站上加载另一个网站。
我在其他一些网站上使用 iframe 加载时发现了一些其他问题。 那么我们不能实现 iframe 来加载其他域网站页面吗?如果是这样,我们是否有其他方式来加载网站?
以下是我测试的方式:
我试过了 http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe 使用以下代码。
<!DOCTYPE html>
<html>
<body>
<iframe src="https://github.com/mattlewis92/angular-bootstrap-calendar/issues" width="800" height="800">
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>
我收到以下错误。 拒绝在框架中显示“https://github.com/mattlewis92/angular-bootstrap-calendar/issues”,因为祖先违反了以下内容安全策略指令:“frame-ancestors 'none'”。
【问题讨论】:
标签: javascript jquery html angularjs iframe