angular1.3 video

video標籤動態獲取播放連接是出現angularjs

 

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.api

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).app

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.cors

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

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

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)ide

 
總的來講就是涉及到瀏覽器同源策略了
須要將這個連接設置爲所信任的便可
 
 
相關文章
相關標籤/搜索