RuleRuleActionCorsConfig

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

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether credentials can be passed during CORS operations. Valid values: on, off.

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

The allowed headers for CORS requests.

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

The allowed HTTP methods for CORS requests. Valid values: GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH.

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

The allowed origins of CORS requests.

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

The headers that can be exposed.

Link copied to clipboard
val maxAge: Int? = null

The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values: -1 to 172800.