GatewayCorsPropertiesResponse

data class GatewayCorsPropertiesResponse(val allowCredentials: Boolean? = null, val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOriginPatterns: List<String>? = null, val allowedOrigins: List<String>? = null, val exposedHeaders: List<String>? = null, val maxAge: Int? = null)

Cross-Origin Resource Sharing property

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether user credentials are supported on cross-site requests. Valid values: true, false.

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

Allowed headers in cross-site requests. The special value * allows actual requests to send any header.

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

Allowed HTTP methods on cross-site requests. The special value * allows all methods. If not set, GET and HEAD are allowed by default.

Link copied to clipboard

Allowed origin patterns to make cross-site requests.

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

Allowed origins to make cross-site requests. The special value * allows all domains.

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

HTTP response headers to expose for cross-site requests.

Link copied to clipboard
val maxAge: Int? = null

How long, in seconds, the response from a pre-flight request can be cached by clients.