CorsRule

class CorsRule

A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If more than one rule applies, the service uses the first applicable rule listed.

Types

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

Properties

Link copied to clipboard

Specifies which headers are allowed in a preflight OPTIONS request through the Access-Control-Request-Headers header. Each header name that is specified in Access-Control-Request-Headers must have a corresponding entry in the rule. Only the headers that were requested are sent back.

Link copied to clipboard

Identifies an HTTP method that the origin that is specified in the rule is allowed to execute.

Link copied to clipboard

One or more response headers that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Link copied to clipboard

One or more headers in the response that you want users to be able to access from their applications (for example, from a JavaScript XMLHttpRequest object).

Link copied to clipboard

The time in seconds that your browser caches the preflight response for the specified resource.

Functions

Link copied to clipboard
inline fun copy(block: CorsRule.Builder.() -> Unit = {}): CorsRule
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