SpacesBucketCorsRule

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

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

A list of headers that will be included in the CORS preflight request's Access-Control-Request-Headers. A header may contain one wildcard (e.g. x-amz-*).

Link copied to clipboard

A list of HTTP methods (e.g. GET) which are allowed from the specified origin.

Link copied to clipboard

A list of hosts from which requests using the specified methods are allowed. A host may contain one wildcard (e.g. http://*.example.com).

Link copied to clipboard
val maxAgeSeconds: Int? = null

The time in seconds that browser can cache the response for a preflight request. */