HttpRouteRuleActionCorsPolicy

data class HttpRouteRuleActionCorsPolicy(val allowCredentials: Boolean? = null, val allowHeaders: List<String>? = null, val allowMethods: List<String>? = null, val allowOriginRegexes: List<String>? = null, val allowOrigins: List<String>? = null, val disabled: Boolean? = null, val exposeHeaders: List<String>? = null, val maxAge: String? = null)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

In response to a preflight request, setting this to true indicates that the actual request can include user credentials.

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

Specifies the content for Access-Control-Allow-Headers header.

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

Specifies the content for Access-Control-Allow-Methods header.

Link copied to clipboard

Specifies the regular expression patterns that match allowed origins.

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

Specifies the list of origins that will be allowed to do CORS requests.

Link copied to clipboard
val disabled: Boolean? = null

If true, the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.

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

Specifies the content for Access-Control-Expose-Headers header.

Link copied to clipboard
val maxAge: String? = null

Specifies how long result of a preflight request can be cached in seconds.