angularjs iframe 跨域打开网站时 报错
打开不同域的内容时报下面的错误:
Blocked loading resource from url not allowed by $sceDelegate policy
解决方案:
app.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
‘self’, ‘http://xxx/**’]);
});
angularjs iframe 跨域打开网站时 报错
打开不同域的内容时报下面的错误:
Blocked loading resource from url not allowed by $sceDelegate policy
解决方案:
app.config(function($sceDelegateProvider) {
$sceDelegateProvider.resourceUrlWhitelist([
‘self’, ‘http://xxx/**’]);
});