edge/middleware/cors library

Functions

cors({int age = 86400, String headers = '*', String methods = 'POST, GET, OPTIONS, PUT, PATCH, DELETE', String origin = '*'}) FutureOr Function(HttpRequest, HttpResponse)
CORS Middlware.