CorsRule interface

Specifies a CORS rule for the Blob service.

Properties

allowedHeaders

Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.

allowedMethods

Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

allowedOrigins

Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains

exposedHeaders

Required if CorsRule element is present. A list of response headers to expose to CORS clients.

maxAgeInSeconds

Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

Property Details

allowedHeaders

Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.

allowedHeaders: string[]

Property Value

string[]

allowedMethods

Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.

allowedMethods: string[]

Property Value

string[]

allowedOrigins

Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains

allowedOrigins: string[]

Property Value

string[]

exposedHeaders

Required if CorsRule element is present. A list of response headers to expose to CORS clients.

exposedHeaders: string[]

Property Value

string[]

maxAgeInSeconds

Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.

maxAgeInSeconds: number

Property Value

number