CorsRuleResponse

data class CorsRuleResponse(val allowedHeaders: List<String>? = null, val allowedMethods: List<String>? = null, val allowedOrigins: List<String>, val exposedHeaders: List<String>? = null, val maxAgeInSeconds: Int? = null)

CORS details.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

The request headers that the origin domain may specify on the CORS request.

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

The methods (HTTP request verbs) that the origin domain may use for a CORS request.

Link copied to clipboard

The origin domains that are permitted to make a request against the service via CORS.

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

The response headers to expose to CORS clients.

Link copied to clipboard
val maxAgeInSeconds: Int? = null

The number of seconds that the client/browser should cache a preflight response.