CorsRule constructor

CorsRule({
  1. required List<String> allowedHeaders,
  2. required List<String> allowedOrigins,
  3. List<MethodName>? allowedMethods,
  4. List<String>? exposeHeaders,
  5. int? maxAgeSeconds,
})

Implementation

CorsRule({
  required this.allowedHeaders,
  required this.allowedOrigins,
  this.allowedMethods,
  this.exposeHeaders,
  this.maxAgeSeconds,
});