
github.com/jub0bs/fcors
go · Package fcors provides net/http middleware for Cross-Origin Resource Sharing (CORS). To create a CORS middleware that only allows anonymous access, use the AllowAccess function. To create a CORS middleware that allows both anonymous access and credentialed access (e.g. with cookies), use the AllowAccessWithCredentials function. To avoid negative interference from reverse proxies, other middleware in the chain, or from the handler at the end of the chain, follow the rules listed below. The key words "MUST", "MUST NOT", "SHOULD", "SHOULD NOT", and "MAY" used below are to be interpreted as described in RFC 2119. This package provides basic options for configuring a CORS middleware, but more advanced (and potentially dangerous) options can be found in the github.com/jub0bs/fcors/risky package. · Repository · Package
Security Advisories for github.com/jub0bs/fcors in go