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

outdatedDart 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.1.0

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
0
pub points
69%
popularity

Publisher

unverified uploader

Middleware to add CORS headers to shelf responses.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

shelf

More

Packages that depend on shelf_cors