Skip to content

Type Method

default()

Default CORS configuration.
static func `default`() -> CORSMiddleware.Configuration

Discussion

  • Allow Origin: Based on request’s Origin value.

  • Allow Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH

  • Allow Headers: Accept, Authorization, Content-Type, Origin, X-Requested-With