Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Cors

Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

Hierarchy

  • Cors

Index

Properties

Optional AllowCredentials

AllowCredentials: undefined | false | true

Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

Optional AllowHeaders

AllowHeaders: string[]

Represents a collection of allowed headers. Supported only for HTTP APIs.

Optional AllowMethods

AllowMethods: string[]

Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

Optional AllowOrigins

AllowOrigins: string[]

Represents a collection of allowed origins. Supported only for HTTP APIs.

Optional ExposeHeaders

ExposeHeaders: string[]

Represents a collection of exposed headers. Supported only for HTTP APIs.

Optional MaxAge

MaxAge: undefined | number

The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.