当我把我的IFRAME它说下面的错误加载一个iframe,如何角JS
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>
显示的控制器编码的 –
可能的复制[如何设置在AngularJS可变的iframe src属性(https://stackoverflow.com/问题/ 20045150/how-to-set-an-iframe-src-attribute-from-a-variable-in-angularjs) –