BloomCorsMiddleware constructor
const
BloomCorsMiddleware({})
Creates a BloomCorsMiddleware with customizable CORS headers.
Implementation
const BloomCorsMiddleware({
this.allowOrigin = '*',
this.allowMethods = 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
this.allowHeaders = 'Content-Type, Authorization, X-Requested-With',
this.allowCredentials = true,
});