EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs

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

Constructors

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

Properties

Link copied to clipboard
val allowCredentials: Output<Boolean>? = null

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: Output<List<String>>? = null

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

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

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

Link copied to clipboard
val allowOrigins: Output<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: Output<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: Output<List<String>>? = null

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

Link copied to clipboard
val maxAge: Output<String>

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).

Functions

Link copied to clipboard
open override fun toJava(): EdgeCacheServiceRoutingPathMatcherRouteRuleRouteActionCorsPolicyArgs