CorsMiddleware constructor
CorsMiddleware({})
Implementation
CorsMiddleware({
this.allowOrigin = '*',
this.allowMethods = 'GET, POST, PUT, PATCH, DELETE, OPTIONS',
this.allowHeaders =
'Origin, Content-Type, Accept, Authorization, X-Requested-With',
this.exposeHeaders,
this.allowCredentials = false,
this.maxAge = 86400, // 24 hours
});