Reputation: 29538
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>
Upvotes: 5
Views: 12568
Reputation: 653
In case this is helpful to anyone else, I was having the same issue after supposedly fixing the CORS settings on the source file. Turns out Chrome was caching the CORS setting along with the file, so I had to clear the cache and then it worked.
Upvotes: 1
Reputation: 2622
In the video tag set crossorigin
to "anonymous"
like this:
<video crossorigin="anonymous"></video>
Upvotes: 2
Reputation: 29538
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.
Upvotes: 4