Configuration
CORS feature configuration
Constructors
Types
Functions
Allow headers that match predicate
Allow headers prefixed with headerPrefix
Allow to send X-Http-Method-Override
header
Allow to expose X-Http-Method-Override
header
Allow requests from the specified domains and schemes. A wildcard is supported for either the host or any subdomain. If you specify a wildcard in the host, you cannot add specific subdomains. Otherwise you can mix wildcard and non-wildcard subdomains as long as the wildcard is always in front of the domain, e.g. *.sub.domain.com
but not sub.*.domain.com
.
Please note that CORS operates ONLY with REAL HTTP methods and will never consider overridden methods via X-Http-Method-Override
. However you can add them here if you are implementing CORS at client side from the scratch that you generally don't need to do.