CorsPolicyResponse

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

Cross-Origin-Resource-Sharing policy

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether the resource allows credentials

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

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

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

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

Link copied to clipboard

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

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

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

Link copied to clipboard
val maxAge: Int? = null

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