# Functions
CheckOrigin is a function that can be used well with cors.Options.AllowOriginRequestFunc.
ContextualizedMiddleware is a context-aware CORS middleware.
HelpMessage returns a string containing information on setting up this CORS middleware.
NormalizeOrigins normalizes the CORS origins.
NormalizeOriginStrings normalizes the CORS origins from string representation.
# Variables
CORSAllowCredentials default value for allow credentials this is required for cookies to be sent by the browser we always want this since we are using cookies for authentication most of the time.
CORSDefaultAllowedMethods Default allowed methods.
CORSDefaultMaxAge max age for cache of preflight request result default is 5 seconds https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age.
CORSRequestHeadersExtended Extended list of request headers these will be concatenated with the safelist.
CORSRequestHeadersSafelist We add the safe list cors accept headers https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_request_header.
CORSResponseHeadersExtended Extended list of response headers these will be concatenated with the safelist.
CORSResponseHeadersSafelist We add the safe list cors expose headers https://developer.mozilla.org/en-US/docs/Glossary/CORS-safelisted_response_header.