Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Cross domain error on loading srt file


Hello,

I'm evaluating jwplayer 6 and i'm getting this error when trying to read the srt file:

XMLHttpRequest cannot load http://xxxxxxxxxxxxxxxxxxxx/movie.srt. No 'Access-Control-Allow-Origin' header is present on the requested resource.

This error only appears on the srt file, the video file loads without issues and they are located on the same serve. With jwplayer 5 I don't get this kind of errors.

The server where the video and srt are located have a crossdomain.xlm file.

Thanks,

1 Community Answers

Andrew

Best Answer  JW Player Support Agent  

Howdy. This is probably caused by CORS headers, since you’re utilizing HTML5. Please take a look at our following article here: support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading

Crossdomain.xml files are used for Flash, which JW5 uses by default.

Andrew

Best Answer  JW Player Support Agent  
0 rated :

Howdy. This is probably caused by CORS headers, since you’re utilizing HTML5. Please take a look at our following article here: support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading

Crossdomain.xml files are used for Flash, which JW5 uses by default.

This question has received the maximum number of answers.