EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicy

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

Constructors

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

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. This translates to the Access-Control-Allow-Credentials response header.

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

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

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

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

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

Specifies the list of origins that will be allowed to do CORS requests. This translates to the Access-Control-Allow-Origin response header.

Link copied to clipboard
val disabled: Boolean? = null

If true, specifies 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 the Access-Control-Allow-Headers response header.

Link copied to clipboard

Specifies how long results of a preflight request can be cached by a client in seconds. Note that many browser clients enforce a maximum TTL of 600s (10 minutes).