# Functions
New returns the default CORS middleware.
# Constants
All available referrer policies.
All available referrer policies.
All available referrer policies.
All available referrer policies.
All available referrer policies.
All available referrer policies.
All available referrer policies.
All available referrer policies.
# Variables
AllowAnyOrigin allows all origins to pass.
DefaultErrorHandler is the default error handler which fires forbidden status (403) on disallowed origins.
DefaultOriginExtractor is the default method which an origin is extracted.
ErrOriginNotAllowed is given to the error handler when the error is caused because an origin was not allowed to pass through.
StrictOriginExtractor is an ExtractOriginFunc type which is a bit more strictly than the DefaultOriginExtractor.
# Type aliases
ReferrerPolicy type for referrer-policy header value.