【发布时间】:2018-01-16 20:59:57
【问题描述】:
当我放入 iframe 时,它显示以下错误,
Refused to display 'my url' in a frame because it set 'X-Frame-Options' to 'DENY, DENY'.I am using this iframe for the first time.
<iframe src="myurl"></iframe>
谁能帮我看看这个情况。
我的 ctrl,
$scope.trustSrc = function(src) {
return $sce.trustAsResourceUrl(src);
}
我的html,
<iframe ng-src="{{trustSrc(https://www.w3schools.com)}}"></iframe>
【问题讨论】:
标签: html angularjs iframe x-frame-options