Skip to content

Structure

CORSMiddleware.Configuration

Configuration used for populating headers in response for CORS requests.
struct Configuration

Topics

Initializers

Instance Properties

  • allowCredentials
    If set to yes, cookies and other credentials will be sent in the response for CORS request.
  • allowedHeaders
    Header string containing headers that are allowed in a response for CORS request.
  • allowedMethods
    Header string containing methods that are allowed for a CORS request response.
  • allowedOrigin
    Setting that controls which origin values are allowed.
  • cacheExpiration
    Optionally sets expiration of the cached pre-flight request. Value is in seconds.
  • exposedHeaders
    Headers exposed in the response of pre-flight request.

Type Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype