angel_cors library

Angel CORS middleware.

Classes

CorsOptions
CORS configuration options. [...]

Functions

cors([CorsOptions options ]) → Future<bool> Function(RequestContext, ResponseContext)
Applies the given CorsOptions.
dynamicCors(FutureOr<CorsOptions> f(RequestContext, ResponseContext)) → Future<bool> Function(RequestContext, ResponseContext)
On-the-fly configures the cors handler. Use this when the context of the surrounding request is necessary to decide how to handle an incoming request.