CorsRuleResponse

data class CorsRuleResponse(val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOrigins: List<String>? = null, val exposedHeaders: List<String>? = null, val id: String? = null, val maxAge: Int? = null)

Definition of CorsRule

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

Headers that are specified in the `Access-Control-Request-Headers` header. These headers are allowed in a preflight OPTIONS request. In response to any preflight OPTIONS request, Amazon S3 returns any requested headers that are allowed.

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

An HTTP method that you allow the origin to run. Allowed values: `GET` | `PUT` | `HEAD` | `POST` | `DELETE`

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

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

Link copied to clipboard
val exposedHeaders: 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 id: String? = null

A unique identifier for this rule. The value must be no more than 255 characters.

Link copied to clipboard
val maxAge: Int? = null

The time in seconds that your browser is to cache the preflight response for the specified resource.