Package Usage: go: github.com/go-chi/cors
cors package is net/http handler to handle CORS related requests
as defined by http://www.w3.org/TR/cors/
You can configure it by passing an option struct to cors.New:
Then insert the handler in the chain:
See Options documentation for more options.
The resulting handler is a standard net/http handler.
6 versions
Latest release: over 3 years ago
1,840 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/go-chi/cors