Cors

class Cors

Represents a CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

Link copied to clipboard

Represents a collection of allowed headers. Supported only for HTTP APIs.

Link copied to clipboard

Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

Link copied to clipboard

Represents a collection of allowed origins. Supported only for HTTP APIs.

Link copied to clipboard

Represents a collection of exposed headers. Supported only for HTTP APIs.

Link copied to clipboard
val maxAge: Int?

The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.

Functions

Link copied to clipboard
inline fun copy(block: Cors.Builder.() -> Unit = {}): Cors
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String