加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angular1.3 video

发布时间:2020-12-17 06:57:02 所属栏目:安全 来源:网络整理
导读: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 defa

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?whitelist/?blacklist?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://code.angularjs.org/1.3.0-beta.14/docs/api/ng/service/$sce
?
https://blog.csdn.net/u012758088/article/details/77503713

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读