BucketV2CorsRule

data class BucketV2CorsRule(val allowedHeaders: List<String>? = null, val allowedMethods: List<String>, val allowedOrigins: List<String>, val exposeHeaders: List<String>? = null, val maxAgeSeconds: Int? = null)

Constructors

Link copied to clipboard
constructor(allowedHeaders: List<String>? = null, allowedMethods: List<String>, allowedOrigins: List<String>, exposeHeaders: List<String>? = null, maxAgeSeconds: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

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

List of headers allowed.

Link copied to clipboard

One or more HTTP methods that you allow the origin to execute. Can be GET, PUT, POST, DELETE or HEAD.

Link copied to clipboard

One or more origins you want customers to be able to access the bucket from.

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

One or more headers in the response that you want customers to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Link copied to clipboard
val maxAgeSeconds: Int? = null

Specifies time in seconds that browser can cache the response for a preflight request.