github.com/jub0bs/cors
Package cors provides net/http middleware for Cross-Origin Resource Sharing (CORS). This package performs extensive configuration validation in order to prevent you from inadvertently creating dysfunctional or insecure CORS middleware. Even so, care is required for CORS middleware to work as intended. Be particularly wary of negative interference from other software components that play a role in processing requests and composing their responses, including intermediaries (proxies and gateways), routers, other middleware in the chain, and the ultimate handler. Follow the rules listed below:
Security Advisories for github.com/jub0bs/cors in go