CorsPolicy constructor

CorsPolicy({
  1. bool? allowCredentials,
  2. List<String> allowHeaders = const [],
  3. List<String> allowMethods = const [],
  4. List<String> allowOriginRegexes = const [],
  5. List<String> allowOrigins = const [],
  6. bool? disabled,
  7. List<String> exposeHeaders = const [],
  8. int? maxAge,
})

Implementation

CorsPolicy({
  this.allowCredentials,
  this.allowHeaders = const [],
  this.allowMethods = const [],
  this.allowOriginRegexes = const [],
  this.allowOrigins = const [],
  this.disabled,
  this.exposeHeaders = const [],
  this.maxAge,
}) : super(fullyQualifiedName);