Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cross origin video does not load in Chrome

I am trying to get my video with crossorigin attribute play in Chrome (version 20.0.1132.47 m). It does not even load. The network panel shows that the OPTIONS (so called "preflight") request gets aborted by the browser for some reason.It works without the crossorigin attribute. Firefox loads and plays it successfully. I would appreciate any suggestions.


<video
    id='vid'
    autoplay
    crossorigin
    src='http://videos-cdn.mozilla.net/serv/mozhacks/demos/resources/immersivevideo/dubai.r.webm'>
</video>

http://jsfiddle.net/ZVgr2/

like image 789
akonsu Avatar asked Jul 07 '12 14:07

akonsu


1 Answers

The cause of this turned out to be missing Access-Control-Allow-Headers response header with the list of HTTP headers that matches the list passed in Access-Control-Request-Headers request header.

like image 183
akonsu Avatar answered Sep 29 '22 05:09

akonsu