SpringCloudGatewayCors

data class SpringCloudGatewayCors(val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOriginPatterns: List<String>? = null, val allowedOrigins: List<String>? = null, val credentialsAllowed: Boolean? = null, val exposedHeaders: List<String>? = null, val maxAgeSeconds: Int? = null)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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. Possible values are DELETE, GET, HEAD, MERGE, POST, OPTIONS and PUT.

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

is user credentials are supported on cross-site requests?

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

HTTP response headers to expose for cross-site requests.

Link copied to clipboard
val maxAgeSeconds: Int? = null

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