class Aws::ApiGatewayV2::Types::Cors

Represents a CORS configuration. Supported only for HTTP APIs. See

Configuring CORS][1

for more information.

[1]: docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html

@note When making an API call, you may pass Cors

data as a hash:

    {
      allow_credentials: false,
      allow_headers: ["__string"],
      allow_methods: ["StringWithLengthBetween1And64"],
      allow_origins: ["__string"],
      expose_headers: ["__string"],
      max_age: 1,
    }

@!attribute [rw] allow_credentials

Specifies whether credentials are included in the CORS request.
Supported only for HTTP APIs.
@return [Boolean]

@!attribute [rw] allow_headers

Represents a collection of allowed headers. Supported only for HTTP
APIs.
@return [Array<String>]

@!attribute [rw] allow_methods

Represents a collection of allowed HTTP methods. Supported only for
HTTP APIs.
@return [Array<String>]

@!attribute [rw] allow_origins

Represents a collection of allowed origins. Supported only for HTTP
APIs.
@return [Array<String>]

@!attribute [rw] expose_headers

Represents a collection of exposed headers. Supported only for HTTP
APIs.
@return [Array<String>]

@!attribute [rw] max_age

The number of seconds that the browser should cache preflight
request results. Supported only for HTTP APIs.
@return [Integer]

Constants

SENSITIVE