Package version:

Interface GatewayCorsProperties

Cross-Origin Resource Sharing property

Hierarchy

  • GatewayCorsProperties

Properties

allowCredentials?: boolean

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

allowedHeaders?: string[]

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

allowedMethods?: string[]

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

allowedOrigins?: string[]

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

exposedHeaders?: string[]

HTTP response headers to expose for cross-site requests.

maxAge?: number

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

Generated using TypeDoc