GetR2BucketCorsRule

data class GetR2BucketCorsRule(val allowed: GetR2BucketCorsRuleAllowed, val exposeHeaders: List<String>, val id: String, val maxAgeSeconds: Double)

Constructors

Link copied to clipboard
constructor(allowed: GetR2BucketCorsRuleAllowed, exposeHeaders: List<String>, id: String, maxAgeSeconds: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Object specifying allowed origins, methods and headers for this CORS rule.

Link copied to clipboard

Specifies the headers that can be exposed back, and accessed by, the JavaScript making the cross-origin request. If you need to access headers beyond the safelisted response headers, such as Content-Encoding or cf-cache-status, you must specify it here.

Link copied to clipboard
val id: String

Identifier for this rule

Link copied to clipboard

Specifies the amount of time (in seconds) browsers are allowed to cache CORS preflight responses. Browsers may limit this to 2 hours or less, even if the maximum value (86400) is specified.