CorsOriginController class

! --------------------------------------------------------------------------

Inheritance

Constructors

CorsOriginController.new({Set<String> allowedOrigins = const {'*'}, Set<String> allowedHeaders = headers, Set<String> allowedMethods = methods, Duration maxAge = const Duration(hours: 24), bool allowCredentials = true, String exposeHeaders = ''})

Properties

allowCredentials bool
final
allowedHeaders Set<String>
final
allowedMethods Set<String>
final
allowedOrigins Set<String>
final
exposeHeaders String
final
hashCode int
The hash code for this object.
no setterinherited
maxAge Duration
final
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
onError(HttpRequest request, Object? error, StackTrace stackTrace) → void
inherited
onRequest(HttpRequest request) FutureOr<HttpControllerBehavior>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

headers → const Set<String>
methods → const Set<String>