CorsRuleResponse

data class CorsRuleResponse(val allowedHeaders: List<String>, val allowedMethods: List<String>, val allowedOrigins: List<String>, val exposedHeaders: List<String>, val maxAgeInSeconds: Int)

Specifies a CORS rule for the Blob service.

Constructors

Link copied to clipboard
constructor(allowedHeaders: List<String>, allowedMethods: List<String>, allowedOrigins: List<String>, exposedHeaders: List<String>, maxAgeInSeconds: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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