AccountCorsRule

data class AccountCorsRule(val allowedHeaders: List<String>, val allowedMethods: List<String>, val allowedOrigins: List<String>, val exposedHeaders: List<String>, val maxAgeInSeconds: Int? = null)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A list of headers that are allowed to be a part of the cross-origin request.

Link copied to clipboard

A list of HTTP headers that are allowed to be executed by the origin. Valid options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT or PATCH.

Link copied to clipboard

A list of origin domains that will be allowed by CORS.

Link copied to clipboard

A list of response headers that are exposed to CORS clients.

Link copied to clipboard
val maxAgeInSeconds: Int? = null

The number of seconds the client should cache a preflight response. Possible values are between 1 and 2147483647.