2016-12-03 00:35:10 +00:00
|
|
|
# cors
|
2019-02-07 15:48:51 +00:00
|
|
|
[](https://pub.dartlang.org/packages/angel_cors)
|
|
|
|
[](https://travis-ci.org/angel-dart/cors)
|
2016-12-05 02:16:54 +00:00
|
|
|
|
2016-12-03 00:35:10 +00:00
|
|
|
Angel CORS middleware.
|
2016-12-05 02:16:54 +00:00
|
|
|
Port of [the original Express CORS middleware](https://github.com/expressjs/cors).
|
|
|
|
|
|
|
|
```dart
|
|
|
|
main() {
|
|
|
|
var app = new Angel();
|
2019-02-07 15:48:51 +00:00
|
|
|
app.fallback(cors());
|
2016-12-05 02:16:54 +00:00
|
|
|
}
|
|
|
|
```
|