cors_enabler 0.9.1+2
cors_enabler: ^0.9.1+2 copied to clipboard
A CORS proxy to make any API server CORS-compliant.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add cors_enablerWith Flutter:
$ flutter pub add cors_enablerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
cors_enabler: ^0.9.1+2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cors_enabler/cors_enabler.dart';