Cors
¶
Used by
-
ApiGatewayV2Client Operations -
AsyncApiGatewayV2Client Operations
Source code in docs_src/capo_apigatewayv2/types/cors.py
allow_credentials
instance-attribute
¶
allow_credentials: NotRequired[__boolean]
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
allow_headers
instance-attribute
¶
allow_headers: NotRequired[CorsHeaderList]
Represents a collection of allowed headers. Supported only for HTTP APIs.
allow_methods
instance-attribute
¶
allow_methods: NotRequired[CorsMethodList]
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
allow_origins
instance-attribute
¶
allow_origins: NotRequired[CorsOriginList]
Represents a collection of allowed origins. Supported only for HTTP APIs.
expose_headers
instance-attribute
¶
expose_headers: NotRequired[CorsHeaderList]
Represents a collection of exposed headers. Supported only for HTTP APIs.
max_age
instance-attribute
¶
max_age: NotRequired[IntegerWithLengthBetweenMinus1And86400]
The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.