Package Usage: go: github.com/sagernet/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.
1 version
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/sagernet/cors