CorsPolicy interface

The CORS policy for the Cosmos DB database account.

Properties

allowedHeaders

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

allowedMethods

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

allowedOrigins

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

exposedHeaders

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

maxAgeInSeconds

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

Property Details

allowedHeaders

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

allowedHeaders?: string

Property Value

string

allowedMethods

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

allowedMethods?: string

Property Value

string

allowedOrigins

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

allowedOrigins: string

Property Value

string

exposedHeaders

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

exposedHeaders?: string

Property Value

string

maxAgeInSeconds

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

maxAgeInSeconds?: number

Property Value

number