GatewayCorsProperties interface
Cross-Origin Resource Sharing property
Properties
allow |
Whether user credentials are supported on cross-site requests. Valid values: |
allowed |
Allowed headers in cross-site requests. The special value |
allowed |
Allowed HTTP methods on cross-site requests. The special value |
allowed |
Allowed origin patterns to make cross-site requests. |
allowed |
Allowed origins to make cross-site requests. The special value |
exposed |
HTTP response headers to expose for cross-site requests. |
max |
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