CORSConfig Type

The configuration values for CORS

Record fields

Record Field Description

allowCookies

Full Usage: allowCookies

Field type: bool

Allow cookies? This is sent in the AccessControlAllowCredentials header.

Field type: bool

allowedMethods

Full Usage: allowedMethods

Field type: InclusiveOption<HttpMethod list>

The list of allowed HttpMethods for the request.

Field type: InclusiveOption<HttpMethod list>

allowedUris

Full Usage: allowedUris

Field type: InclusiveOption<string list>

The list of allowed Uri(s) for requests.

Field type: InclusiveOption<string list>

exposeHeaders

Full Usage: exposeHeaders

Field type: InclusiveOption<string list>

The list of response headers exposed to client. This is sent in AccessControlExposeHeaders header.

Field type: InclusiveOption<string list>

maxAge

Full Usage: maxAge

Field type: int option

Max age in seconds the user agent is allowed to cache the result of the request.

Field type: int option