O
O
OKNOZA2016-03-05 17:40:46
Nginx
OKNOZA, 2016-03-05 17:40:46

How to properly serve content through Nginx?

Tell me what's wrong? I can’t give HLS content, it works on the local, but not on my site, it gives an error like this.

XMLHttpRequest cannot load http://domen/hls/2x2/live.m3u8. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://****.info' is therefore not allowed access.

What to register in Nginx? to give header

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TyzhSysAdmin, 2016-03-05
@POS_troi

http://domen/hls/2x2/live.m3u8
https://developer.chrome.com/extensions/xhr

I
Igor Vorotnev, 2016-03-05
@HeadOnFire

Cross-Origin Resource Sharing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question