Serinus Cors
A hook for Serinus applications 🐤 to customize Cross-Origin Resource Sharing behaviour.
Installation
dart pub add serinus_cors
Usage
import 'package:serinus/serinus.dart';
void main(List<String> arguments) async {
SerinusApplication application = await serinus.createApplication(
entrypoint: AppModule());
application.use(CorsHook());
await application.serve();
}