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

crossdomain access denied


Dear JWplayer support!

I paid yesterday for the starter kit.
I tried to play hls streaming. The url is //212.92.4.197:8080/hls/lhstream.m3u8. But i got error, Crossdomain access denied!
my webserver CORS settings :
location / {
# Disable cache
add_header 'Cache-Control' 'no-cache';

# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length';

# allow CORS preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
This is the origin Nginx conf. Should i change it?

Thank you for the help!

1 Community Answers

Timoor Kurdi

JW Player Support Agent  
0 rated :

Hi,

Sorry to hear you are having issues, but since this is not a dev forum, I recommend reaching out to sites like stackoverflow for custom coding questions, we can only support questions around the player.

Post Your Public Answer