GatewayCorsProperties interface

Cross-Origin Resource Sharing property

Properties

allowCredentials

Whether user credentials are supported on cross-site requests. Valid values: true, false.

allowedHeaders

Allowed headers in cross-site requests. The special value * allows actual requests to send any header.

allowedMethods

Allowed HTTP methods on cross-site requests. The special value * allows all methods. If not set, GET and HEAD are allowed by default.

allowedOriginPatterns

Allowed origin patterns to make cross-site requests.

allowedOrigins

Allowed origins to make cross-site requests. The special value * allows all domains.

exposedHeaders

HTTP response headers to expose for cross-site requests.

maxAge

How long, in seconds, the response from a pre-flight request can be cached by clients.

Property Details

allowCredentials

Whether user credentials are supported on cross-site requests. Valid values: true, false.

allowCredentials?: boolean

Property Value

boolean

allowedHeaders

Allowed headers in cross-site requests. The special value * allows actual requests to send any header.

allowedHeaders?: string[]

Property Value

string[]

allowedMethods

Allowed HTTP methods on cross-site requests. The special value * allows all methods. If not set, GET and HEAD are allowed by default.

allowedMethods?: string[]

Property Value

string[]

allowedOriginPatterns

Allowed origin patterns to make cross-site requests.

allowedOriginPatterns?: string[]

Property Value

string[]

allowedOrigins

Allowed origins to make cross-site requests. The special value * allows all domains.

allowedOrigins?: string[]

Property Value

string[]

exposedHeaders

HTTP response headers to expose for cross-site requests.

exposedHeaders?: string[]

Property Value

string[]

maxAge

How long, in seconds, the response from a pre-flight request can be cached by clients.

maxAge?: number

Property Value

number