AppSpecFunctionCors

data class AppSpecFunctionCors(val allowCredentials: Boolean? = null, val allowHeaders: List<String>? = null, val allowMethods: List<String>? = null, val allowOrigins: AppSpecFunctionCorsAllowOrigins? = null, val exposeHeaders: List<String>? = null, val maxAge: String? = null)

Constructors

Link copied to clipboard
constructor(allowCredentials: Boolean? = null, allowHeaders: List<String>? = null, allowMethods: List<String>? = null, allowOrigins: AppSpecFunctionCorsAllowOrigins? = null, exposeHeaders: List<String>? = null, maxAge: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether browsers should expose the response to the client-side JavaScript code when the request’s credentials mode is include. This configures the Access-Control-Allow-Credentials header.

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

The set of allowed HTTP request headers. This configures the Access-Control-Allow-Headers header.

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

The set of allowed HTTP methods. This configures the Access-Control-Allow-Methods header.

Link copied to clipboard

The set of allowed CORS origins. This configures the Access-Control-Allow-Origin header.

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

The set of HTTP response headers that browsers are allowed to access. This configures the Access-Control-Expose-Headers header.

Link copied to clipboard
val maxAge: String? = null

An optional duration specifying how long browsers can cache the results of a preflight request. This configures the Access-Control-Max-Age header. Example: 5h30m.