Cors Policy Args
data class CorsPolicyArgs(val allowCredentials: Output<Boolean>? = null, val allowHeaders: Output<List<String>>? = null, val allowMethods: Output<List<String>>? = null, val allowOriginRegexes: Output<List<String>>? = null, val allowOrigins: Output<List<String>>? = null, val disabled: Output<Boolean>? = null, val exposeHeaders: Output<List<String>>? = null, val maxAge: Output<Int>? = null) : ConvertibleToJava<CorsPolicyArgs>
The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard.
Constructors
Link copied to clipboard
fun CorsPolicyArgs(allowCredentials: Output<Boolean>? = null, allowHeaders: Output<List<String>>? = null, allowMethods: Output<List<String>>? = null, allowOriginRegexes: Output<List<String>>? = null, allowOrigins: Output<List<String>>? = null, disabled: Output<Boolean>? = null, exposeHeaders: Output<List<String>>? = null, maxAge: Output<Int>? = null)
Functions
Properties
Link copied to clipboard
Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.