ServiceCorsConfiguration

data class ServiceCorsConfiguration(val allowCredentials: Boolean? = null, val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOrigins: List<String>? = null, val maxAgeInSeconds: Int? = null)

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

(Boolean) If credentials are allowed via CORS.

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

A set of headers to be allowed via CORS.

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

The methods to be allowed via CORS. Possible values are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PATCH and PUT.

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

A set of origins to be allowed via CORS.

Link copied to clipboard
val maxAgeInSeconds: Int? = null

The max age to be allowed via CORS.