$sceDelegateProvider allow any URL

208 views
Skip to first unread message

Roberto Sacchetti

unread,
Jun 17, 2014, 11:24:17 AM6/17/14
to ang...@googlegroups.com
Hy all, i new in angular world,
now i have a problem, i need to allow any URL fro my app.
I have this code in template:

<video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="100%" height="240"
           poster="{{post.picture}}"
           data-setup='{"example_option":true}'>
      <source dynamic-url src="{{post.source}}" type='video/mp4' />
      <source dynamic-url src="{{post.source}}" type='video/webm' />
      <source dynamic-url src="{{post.source}}" type='video/ogg' />
      I'm sorry; your browser doesn't support HTML5 video in WebM with VP8 or MP4 with H.264.
      <!-- You can embed a Flash player here, to play your mp4 video in older browsers -->
    </video>


my app conf is:

$sceDelegateProvider.resourceUrlWhitelist([
        'self',
    ]);

    $sceDelegateProvider.resourceUrlBlacklist([

but i receive this error message:

Error: [$interpolate:interr] Can't interpolate: {{post.source}} Error: [$sce:insecurl] Blocked loading resource from url not allowed by $sceDelegate policy. URL: https://fbcdn-video-a.akamaihd.net/hvideo-ak-xaf1/v/t42.1790-2/1038699_1020…fb1a328939&oe=53A23AF2&__gda__=1403178832_efe861e2d5958d79e769662326843eaa

why ?? help me please
thanks.
Reply all
Reply to author
Forward
0 new messages