serinus_cors 1.0.1 copy "serinus_cors: ^1.0.1" to clipboard
serinus_cors: ^1.0.1 copied to clipboard

Hook to customize Cross-Origin Resource Sharing behaviour

Serinus Logo

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();
}