Cors constructor

Cors({
  1. String origin = '*',
  2. String methods = 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
  3. String headers = 'Origin, Content-Type, Accept, Authorization',
})

Creates a new Cors instance with the specified configuration.

Implementation

Cors({
  this.origin = '*',
  this.methods = 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
  this.headers = 'Origin, Content-Type, Accept, Authorization',
});