SpringCloudGatewayCorsArgs

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

Constructors

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

Properties

Link copied to clipboard
val allowedHeaders: Output<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: Output<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
val allowedOriginPatterns: Output<List<String>>? = null

Allowed origin patterns to make cross-site requests.

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

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

Link copied to clipboard
val credentialsAllowed: Output<Boolean>? = null

is user credentials are supported on cross-site requests?

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

HTTP response headers to expose for cross-site requests.

Link copied to clipboard
val maxAgeSeconds: Output<Int>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): SpringCloudGatewayCorsArgs