R2Bucket Cors Rule Args
data class R2BucketCorsRuleArgs(val allowed: Output<R2BucketCorsRuleAllowedArgs>, val exposeHeaders: Output<List<String>>? = null, val id: Output<String>? = null, val maxAgeSeconds: Output<Double>? = null) : ConvertibleToJava<R2BucketCorsRuleArgs>
Constructors
Link copied to clipboard
constructor(allowed: Output<R2BucketCorsRuleAllowedArgs>, exposeHeaders: Output<List<String>>? = null, id: Output<String>? = null, maxAgeSeconds: Output<Double>? = null)
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
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.