UrlCorsArgs

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

Constructors

Link copied to clipboard
constructor(allowCredentials: Output<Boolean>? = null, allowHeaders: Output<List<String>>? = null, allowMethods: Output<List<UrlAllowMethodsItem>>? = 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.

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

Represents a collection of allowed headers.

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

Represents a collection of allowed HTTP methods.

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

Represents a collection of allowed origins.

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

Represents a collection of exposed headers.

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

The maximum amount of time, in seconds, that browsers can cache results of a preflight request. By default, this is set to 0 , which means the browser will not cache results.

Functions

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