File tree Expand file tree Collapse file tree 4 files changed +8
-47
lines changed Expand file tree Collapse file tree 4 files changed +8
-47
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " routerify-cors"
3- version = " 1.1 .0"
3+ version = " 3.0 .0"
44description = " A Routerify middleware which enables CORS."
55homepage = " https://github.com/routerify/routerify-cors"
66repository = " https://github.com/routerify/routerify-cors"
@@ -12,9 +12,8 @@ license = "MIT"
1212edition = " 2018"
1313
1414[dependencies ]
15- routerify = " 1.1 "
16- hyper = " 0.13 "
15+ routerify = " 3 "
16+ hyper = " 0.14 "
1717
1818[dev-dependencies ]
19- tokio = { version = " 0.2" , features = [" full" ] }
20- stream-body = " 0.1"
19+ tokio = { version = " 1" , features = [" full" ] }
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ Add this to your `Cargo.toml`:
1515
1616``` toml
1717[dependencies ]
18- routerify = " 1.1 "
19- routerify-cors = " 1.1 "
18+ routerify = " 3 "
19+ routerify-cors = " 3 "
2020```
21-
21+
2222## Example
2323
2424``` rust
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9494 headers. insert ( header:: ACCESS_CONTROL_ALLOW_ORIGIN , HeaderValue :: from_static ( "*" ) ) ;
9595 headers. insert ( header:: ACCESS_CONTROL_ALLOW_METHODS , HeaderValue :: from_static ( "*" ) ) ;
9696 headers. insert ( header:: ACCESS_CONTROL_ALLOW_HEADERS , HeaderValue :: from_static ( "*" ) ) ;
97+ headers. insert ( header:: ACCESS_CONTROL_EXPOSE_HEADERS , HeaderValue :: from_static ( "*" ) ) ;
9798
9899 Ok ( res)
99100}
You can’t perform that action at this time.
0 commit comments