CorsConfig class
CORS configuration.
Constructors
-
CorsConfig.new({required List<
String> allowedOrigins, required List<String> allowedMethods, required List<String> allowedHeaders, required bool credentials}) -
const
- CorsConfig.development()
-
Development CORS configuration (permissive).
factory
- CorsConfig.production()
-
Default production CORS configuration.
factory
Properties
-
allowedHeaders
→ List<
String> -
final
-
allowedMethods
→ List<
String> -
final
-
allowedOrigins
→ List<
String> -
final
- credentials → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited