CorsServiceProvider class

Provides CORS defaults and hooks into middleware configuration.

Inheritance
Mixed-in types

Constructors

CorsServiceProvider()

Properties

configSource String
Optional identifier used when tracking config contributions.
no setterinherited
defaultConfig ConfigDefaults
Default configuration (values + documentation) contributed by this provider.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemas Map<String, Schema>
The JSON Schemas for this configuration.
no setterinherited

Methods

boot(Container container) Future<void>
Optional boot method called after all providers are registered.
override
cleanup(Container container) Future<void>
Optional cleanup method called when container is disposed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onConfigReload(Container container, Config config) Future<void>
Called when the application configuration is reloaded.
override
register(Container container) → void
Register services with the container.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

spec → const CorsConfigSpec