BucketCorsCorsRule

data class BucketCorsCorsRule(val allowedHeaders: List<String>? = null, val allowedMethods: List<String>, val allowedOrigins: List<String>? = null, 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>? = null, exposeHeaders: List<String>? = null, maxAgeSeconds: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

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

Specifies whether the headers specified by Access-Control-Request-Headers in the OPTIONS preflight request are allowed. You can use only one asterisk (*) as the wildcard for allowed header. .

Link copied to clipboard

The cross-origin request method that is allowed. Valid values: GET, PUT, DELETE, POST, and HEAD.

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

The origins from which cross-origin requests are allowed. .

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

The response headers for allowed access requests from applications, such as an XMLHttpRequest object in JavaScript. .

Link copied to clipboard
val maxAgeSeconds: Int? = null

The period of time within which the browser can cache the response to an OPTIONS preflight request for the specified resource. Unit: seconds.