Skip to content

Enumeration

CORSMiddleware.AllowOriginSetting

Option for the allow origin header in responses for CORS requests.
enum AllowOriginSetting

Overview

  • none: Disallows any origin.

  • originBased: Uses value of the origin header in the request.

  • all: Uses wildcard to allow any origin.

  • any: A list of allowable origins.

  • custom: Uses custom string provided as an associated value.

Topics

Enumeration Cases

Instance Methods

Type Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype