CORS error while hitting API's from React application

I am getting CORS error while using ChirpStack v4 REST API. How to resolve this?

@brocaar any update on this topic? It will be great if we get any update regarding this topic.

@Sathvik CORS or the AllowedOrigins Header is not set for the ChirpStack v4 REST API.

I created a pull request to enable CORS via a command line flag. See: https://github.com/chirpstack/chirpstack-rest-api/pull/5

@brocaar if you have a chance please take a look on the pull request or share you thoughts on enabling CORS for the API here. Thanks!

1 Like

Thanks, I’ve just merged your PR :slight_smile:

2 Likes

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