BloomCorsMiddleware constructor

const BloomCorsMiddleware({
  1. String allowOrigin = '*',
  2. String allowMethods = 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
  3. String allowHeaders = 'Content-Type, Authorization, X-Requested-With',
  4. bool allowCredentials = true,
})

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,
});