- Linux
- NGINX
- CORS - No 'Access-Control-Allow-Origin' header is present on the requested resource.
-
CORS - No ''Access-Control-Allow-Origin'' header is present on the requested resource.
Article Entry Date: July 5,2025 @ 09:18:08 / Last Updated On: February 25,2026 @ 01:59:48
-
This article is about NGINX only.
I first encountered this issue on April 16-17, 2025.
On May 24, 2025, I resolved the issue for Local Streams (Within my Network)
(Change demo.domain.com to your domain)
For Local, navigate to the following folder
/etc/nginx/nginx.conf
Add the following to the http section
And then, when I went to test it outside the network, it gave me the CORS error again.
So, on July 5, 2025, I figured out what I needed to do to get it to work for outside the network.
I copied the code from above and started placing it in different files, restarting NGINX until I got it working.
To have it work from outside your network.
Navigate to the following folder.
/usr/local/nginx/conf/nginx.conf
Add the following to the Server {9443} section, along with your SSL Information.
Updated on [February 25, 2026].
It has been a summer since I last had the Streaming server running, so I had forgotten a few things along the way.
While getting the list stream going, I ran into the dreaded [CORS] error again.
I found out that I needed to update all the files that had the URL to allow the stream to be received.
After changing the two locations above, I was still receiving the same [CORS] error pointing to the old subdomain that I no longer use.
I rebooted the Linux server.
After getting back up, the [CORS] error was still there.
I did a quick Google search to find out which files can be edited in [NGINX], and one of the locations that I failed to mention in this article, and had forgotten about myself.
nano /etc/nginx/sites-available/stream.domain.com
Inside this file is the same as the above /usr/local/nginx/conf/nginx.conf
Update the file with this. (Change to the actual domain you want to allow access to the stream.)