GetBucketsBucketCorsRule

data class GetBucketsBucketCorsRule(val allowedHeaders: List<String>, val allowedMethods: List<String>, val allowedOrigins: List<String>, val exposeHeaders: List<String>, val maxAgeSeconds: Int)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Control whether the headers specified by Access-Control-Request-Headers in the OPTIONS prefetch command are allowed. Each header specified by Access-Control-Request-Headers must match a value in AllowedHeader. Each rule allows up to one wildcard “*” .

Link copied to clipboard

Specify the allowed methods for cross-domain requests. Possible values: GET, PUT, DELETE, POST and HEAD.

Link copied to clipboard

The origins allowed for cross-domain requests. Multiple elements can be used to specify multiple allowed origins. Each rule allows up to one wildcard "\*". If "\*" is specified, cross-domain requests of all origins are allowed.

Link copied to clipboard

Specify the response headers allowing users to access from an application (for example, a Javascript XMLHttpRequest object). The wildcard "\*" is not allowed.

Link copied to clipboard

Specify the cache time for the returned result of a browser prefetch (OPTIONS) request to a specific resource.