AccessApplicationCorsHeader

data class AccessApplicationCorsHeader(val allowAllHeaders: Boolean? = null, val allowAllMethods: Boolean? = null, val allowAllOrigins: Boolean? = null, val allowCredentials: Boolean? = null, val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOrigins: List<String>? = null, val maxAge: Int? = null)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Value to determine whether all HTTP headers are exposed.

Link copied to clipboard

Value to determine whether all methods are exposed.

Link copied to clipboard

Value to determine whether all origins are permitted to make CORS requests.

Link copied to clipboard

Value to determine if credentials (cookies, authorization headers, or TLS client certificates) are included with requests.

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

List of HTTP headers to expose via CORS.

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

List of methods to expose via CORS.

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

List of origins permitted to make CORS requests.

Link copied to clipboard
val maxAge: Int? = null

The maximum time a preflight request will be cached.