CorsPolicy constructor

const CorsPolicy({
  1. List<StringMatch>? allowOrigins,
  2. List<String>? allowMethods,
  3. List<String>? allowHeaders,
  4. List<String>? exposeHeaders,
  5. Duration? maxAge,
  6. bool? allowCredentials,
})

The main constructor.

Implementation

const CorsPolicy({
  this.allowOrigins,
  this.allowMethods,
  this.allowHeaders,
  this.exposeHeaders,
  this.maxAge,
  this.allowCredentials,
});