RouteCorsRule constructor

RouteCorsRule({
  1. required List<String> allowedOrigins,
  2. List<String> allowedMethods = const ['GET', 'HEAD'],
  3. List<String> allowedHeaders = const [],
  4. List<String> exposeHeaders = const [],
  5. int maxAgeSeconds = 3600,
  6. bool allowCredentials = false,
})

Implementation

RouteCorsRule({
  required this.allowedOrigins,
  this.allowedMethods = const ['GET', 'HEAD'],
  this.allowedHeaders = const [],
  this.exposeHeaders = const [],
  this.maxAgeSeconds = 3600,
  this.allowCredentials = false,
});