CORSConfiguration class

@author Trevor Smith

Inheritance
Annotations
  • @JsonSerializable()

Constructors

CORSConfiguration({bool allowCredentials, List<String> allowedHeaders, List<HTTPMethod> allowedMethods, List<String> allowedOrigins, bool debug, List<String> exposedHeaders, num preflightMaxAgeInSeconds})
CORSConfiguration.fromJson(Map<String, dynamic> json)
factory

Properties

allowCredentials bool
getter/setter pair
allowedHeaders List<String>
getter/setter pair
allowedMethods List<HTTPMethod>
getter/setter pair
allowedOrigins List<String>
getter/setter pair
debug bool
getter/setter pair
enabled bool
getter/setter pairinherited
exposedHeaders List<String>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
preflightMaxAgeInSeconds num
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited