ApiCorsArgs

data class ApiCorsArgs(val allowCredentials: Output<Boolean>? = null, val allowHeaders: Output<List<String>>? = null, val allowMethods: Output<List<String>>? = null, val allowOrigins: Output<List<String>>? = null, val exposeHeaders: Output<List<String>>? = null, val maxAge: Output<Int>? = null) : ConvertibleToJava<ApiCorsArgs>

The `Cors` property specifies a CORS configuration for an API. Supported only for HTTP APIs. See Configuring CORS for more information.

Constructors

Link copied to clipboard
constructor(allowCredentials: Output<Boolean>? = null, allowHeaders: Output<List<String>>? = null, allowMethods: Output<List<String>>? = null, allowOrigins: Output<List<String>>? = null, exposeHeaders: Output<List<String>>? = null, maxAge: Output<Int>? = null)

Properties

Link copied to clipboard
val allowCredentials: Output<Boolean>? = null

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

Link copied to clipboard
val allowHeaders: Output<List<String>>? = null

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

Link copied to clipboard
val allowMethods: Output<List<String>>? = null

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

Link copied to clipboard
val allowOrigins: Output<List<String>>? = null

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

Link copied to clipboard
val exposeHeaders: Output<List<String>>? = null

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

Link copied to clipboard
val maxAge: Output<Int>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): ApiCorsArgs