Answer the question
In order to leave comments, you need to log in
Why is the stream not being picked up?
There is a configured server with ngnix-rtmp, rstrm.ru/p.html - you can enter the stream key and watch the stream. These streams are embedded on another site, on a second server. Everything worked until the first reboot. Got an error
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404.
Answer the question
In order to leave comments, you need to log in
You need to add the Access-Control-Allow-Origin header on the server for certain file types. Add to the location section of the nginx.conf file:
location ~ \.(ts|ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question