chirpstack / chirpstack-rest-api

ChirpStack gRPC API to REST proxy.
MIT License
17 stars 14 forks source link

Support CORS headers via flag #5

Closed t-huyeng closed 2 years ago

t-huyeng commented 2 years ago

With this changes it is possible to configure the AllowedOrigins Header for all routes. For example setting the header to "*" it allows requests from all origins.

I think this is needed and helpful if you want to request from frontend application without using any proxy.

Also see: https://forum.chirpstack.io/t/cors-error-while-hitting-apis-from-react-application/14890/2

brocaar commented 2 years ago

Thanks :+1: