CorsPolicyArgs

data class CorsPolicyArgs(val allowedHeaders: Output<String>? = null, val allowedMethods: Output<String>? = null, val allowedOrigins: Output<String>, val exposedHeaders: Output<String>? = null, val maxAgeInSeconds: Output<Double>? = null) : ConvertibleToJava<CorsPolicyArgs>

The CORS policy for the Cosmos DB database account.

Constructors

Link copied to clipboard
constructor(allowedHeaders: Output<String>? = null, allowedMethods: Output<String>? = null, allowedOrigins: Output<String>, exposedHeaders: Output<String>? = null, maxAgeInSeconds: Output<Double>? = null)

Properties

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

The request headers that the origin domain may specify on the CORS request.

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

The methods (HTTP request verbs) that the origin domain may use for a CORS request.

Link copied to clipboard
val allowedOrigins: Output<String>

The origin domains that are permitted to make a request against the service via CORS.

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

The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.

Link copied to clipboard
val maxAgeInSeconds: Output<Double>? = null

The maximum amount time that a browser should cache the preflight OPTIONS request.

Functions

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