CorsPolicyArgs

data class CorsPolicyArgs(val allowCredentials: Output<Boolean>? = null, val allowedHeaders: Output<List<String>>? = null, val allowedMethods: Output<List<String>>? = null, val allowedOrigins: Output<List<String>>, val exposeHeaders: Output<List<String>>? = null, val maxAge: Output<Int>? = null) : ConvertibleToJava<CorsPolicyArgs>

Cross-Origin-Resource-Sharing policy

Constructors

Link copied to clipboard
constructor(allowCredentials: Output<Boolean>? = null, allowedHeaders: Output<List<String>>? = null, allowedMethods: Output<List<String>>? = null, allowedOrigins: Output<List<String>>, exposeHeaders: Output<List<String>>? = null, maxAge: Output<Int>? = null)

Properties

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

Specifies whether the resource allows credentials

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

Specifies the content for the access-control-allow-headers header

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

Specifies the content for the access-control-allow-methods header

Link copied to clipboard
val allowedOrigins: Output<List<String>>

Specifies the content for the access-control-allow-origins header

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

Specifies the content for the access-control-expose-headers header

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

Specifies the content for the access-control-max-age header

Functions

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