serinus_cors 1.0.1 serinus_cors: ^1.0.1 copied to clipboard
Hook to customize Cross-Origin Resource Sharing behaviour
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();
}