2016-12-03 00:35:10 +00:00
|
|
|
# cors
|
2016-12-05 02:16:54 +00:00
|
|
|
|
2016-12-05 05:15:28 +00:00
|
|
|
![1.0.0-dev+1](https://img.shields.io/badge/version-1.0.0--dev+1-red.svg)
|
2016-12-05 02:16:54 +00:00
|
|
|
![build status](https://travis-ci.org/angel-dart/cors.svg)
|
|
|
|
|
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();
|
|
|
|
app.before.add(cors());
|
|
|
|
}
|
|
|
|
```
|