Cors class

Constructors

Cors({List<String> allowedOrigins, List<String> allowedHeaders, List<String> allowedMethods, int maxAge, bool allowCredentials: false, List<String> exposedHeaders})

Properties

allowCredentials bool
final
exposedHeaders List<String>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
maxAge int
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

areAllowedHeaders(List<String> headers) bool
isAllowedMethod(String method) bool
isAllowedOrigin(String origin) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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