CorsPolicyResponse

data class CorsPolicyResponse(val allowedHeaders: String? = null, val allowedMethods: String? = null, val allowedOrigins: String, val exposedHeaders: String? = null, val maxAgeInSeconds: Double? = null)

The CORS policy for the Cosmos DB database account.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val allowedHeaders: String? = null

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

Link copied to clipboard
val allowedMethods: String? = null

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

Link copied to clipboard

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

Link copied to clipboard
val exposedHeaders: 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: Double? = null

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