UrlCors

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

Constructors

Link copied to clipboard
constructor(allowCredentials: Boolean? = null, allowHeaders: List<String>? = null, allowMethods: List<UrlAllowMethodsItem>? = 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 are included in the CORS request.

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

Represents a collection of allowed headers.

Link copied to clipboard

Represents a collection of allowed HTTP methods.

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

Represents a collection of allowed origins.

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

Represents a collection of exposed headers.

Link copied to clipboard
val maxAge: 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.