shelf_cors 0.2.1 copy "shelf_cors: ^0.2.1" to clipboard
shelf_cors: ^0.2.1 copied to clipboard

Dart 1 only

Middleware to add CORS headers to shelf responses.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add shelf_cors

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  shelf_cors: ^0.2.1

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:shelf_cors/shelf_cors.dart';
0
likes
15
pub points
69%
popularity

Publisher

unverified uploader

Middleware to add CORS headers to shelf responses.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

shelf

More

Packages that depend on shelf_cors