Chirpstack V4 + NGINX - Enabling CORS


I am trying to schedule a downlink using the REST API in Chirpstack V4 (already installed). This is done using javascript in a different domain than the one the chirpstack server is hosted in. I am always welcomed with the error: " domain has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled."

This happens even with CORS=‘’ in the chirpstack API Enviroment and the allow cross origin header set to '’ in NGINX.

I know that the API is working because a CURL request enqueues the payload with success.

Could anyone share a working config for this stack? It would be greatly appreciated.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.