CORSPolicy class
Constructors
-
CORSPolicy({List<
String> ? allowOrigins = const ['*'], List<String> ? allowMethods, List<String> ? allowHeaders, int? maxAge}) - CORSPolicy.allowAll()
-
factory
-
CORSPolicy.allowOnlyMethods(List<
String> methods) -
factory
Properties
-
allowHeaders
↔ List<
String> ? -
getter/setter pair
-
allowMethods
↔ List<
String> ? -
getter/setter pair
-
allowOrigins
↔ List<
String> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAge ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyPolicy(
HttpRequest request) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited