2016-12-03 00:35:10 +00:00
|
|
|
# cors
|
2016-12-05 02:16:54 +00:00
|
|
|
|
2016-12-21 17:43:42 +00:00
|
|
|
![1.0.0-dev+2](https://img.shields.io/badge/version-1.0.0--dev+2-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());
|
|
|
|
}
|
|
|
|
```
|