R2BucketCorsRuleAllowed

data class R2BucketCorsRuleAllowed(val headers: List<String>? = null, val methods: List<String>, val origins: List<String>)

Constructors

Link copied to clipboard
constructor(headers: List<String>? = null, methods: List<String>, origins: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val headers: List<String>? = null

Specifies the value for the Access-Control-Allow-Headers header R2 sets when requesting objects in this bucket from a browser. Cross-origin requests that include custom headers (e.g. x-user-id) should specify these headers as AllowedHeaders.

Link copied to clipboard

Specifies the value for the Access-Control-Allow-Methods header R2 sets when requesting objects in a bucket from a browser.

Link copied to clipboard

Specifies the value for the Access-Control-Allow-Origin header R2 sets when requesting objects in a bucket from a browser.