angular1.3 video

video标签动态获取播放链接是出现

 

Error: $interpolate:interr

Interpolation Error

Error: $sce:insecurl

Processing of a Resource from Untrusted Source Blocked
 
 

Description

AngularJS' Strict Contextual Escaping (SCE) mode (enabled by default) has blocked loading a resource from an insecure URL.

Typically, this would occur if you're attempting to load an Angular template from an untrusted source. It's also possible that a custom directive threw this error for a similar reason.

Angular only loads templates from trusted URLs (by calling $sce.getTrustedResourceUrl on the template URL).

By default, only URLs that belong to the same origin are trusted. These are urls with the same domain, protocol and port as the application document.

The ngInclude directive and directives that specify a templateUrl require a trusted resource URL.

To load templates from other domains and/or protocols, either adjust the whitelistblacklist or wrap the URL with a call to $sce.trustAsResourceUrl.

Note: The browser's Same Origin Policy and Cross-Origin Resource Sharing (CORS) policy apply that may further restrict whether the template is successfully loaded. (e.g. neither cross-domain requests won't work on all browsers nor file:// requests on some browsers)

 
总的来说就是涉及到浏览器同源策略了
需要将这个链接设置为所信任的即可
 
 

转载于:https://www.cnblogs.com/herewego/p/10593210.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值