platform/README.md

13 lines
390 B
Markdown
Raw Normal View History

2016-12-03 00:35:10 +00:00
# cors
2019-02-07 15:48:51 +00:00
[![Pub](https://img.shields.io/pub/v/angel_cors.svg)](https://pub.dartlang.org/packages/angel_cors)
[![build status](https://travis-ci.org/angel-dart/cors.svg)](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
}
```