Commit Graph

13 Commits

Author SHA1 Message Date
Yong Wen Chua c99083af5d v0.2.1
- Bumped nightly requirement to at least `nightly-2017-09-26`
- `serde` is now gated behind a feature flag, enabled by default
- Some small cleanup changes
2017-11-06 15:31:05 +08:00
Yong Wen Chua 5c0bb10b2d
Bump nightly version (#28) 2017-10-31 10:46:25 +08:00
Yong Wen Chua 198190fb08 v0.2.0
- "Truly manual" mode is added (#22)
- Fairing's `on_response` will now log to info whenever it turns a missing OPTIONS
into a CORS preflight response (8eb782a7ca)
- Add a "catch all" OPTIONS route to automatically respond to preflight OPTIONS
check from the `Cors` in Rocket's managed state (#24)
- Bump minimum supported Rust nightly
2017-07-24 16:06:11 +08:00
Yong Wen Chua 7d26aeb795 Bump nightly 2017-07-21 14:23:21 +08:00
Yong Wen Chua 0163ff6a26 Fix bug where Access-Control-Allow-Origin included a trailing `/`
Which broke all browsers
2017-07-19 16:26:44 +08:00
Yong Wen Chua a5f54c72cf v0.1.3 2017-07-19 12:28:33 +08:00
Yong Wen Chua fcd83e8fb5 Fix an issue where Fairing on_response will inject CORS headers into failed CORS requests 2017-07-19 09:52:30 +08:00
Yong Wen Chua 539157e0f0 Update Docs link and bump to 0.1.1
docs.rs cannot build nightly documentation
2017-07-18 18:27:24 +08:00
Yong Wen Chua 8fc8fef3eb Add documentation (#15)
* Add documentation for Fairing

* Add Guard example and documentation
2017-07-18 18:22:20 +08:00
Yong Wen Chua ebd75cd0ba Rocket 0.3 is released 2017-07-15 10:37:10 +08:00
Yong Wen Chua 7dbc22b523 Delay CORS checks and response until `Responder::respond_to` is invoked (#6)
* Delay checking of CORS to just before responding

* Lifetime issues

* Use State::inner()

* Fix lifetime issues

* Bump Rocket

* Document 'static limitation

And link to https://github.com/SergioBenitez/Rocket/pull/345

* Remove extraneous comments
2017-07-15 01:38:13 +08:00
Yong Wen Chua dfc1cdfee0 Refactor Implementation (#3)
* Introduce AllOrSome enum

More AllOrSome usage

Allowed methods

Preflight response

Response

* Additional documentation

* Support non CORS requests
2017-07-14 11:03:45 +08:00
Yong Wen Chua c9190abdc4 Add README 2017-07-13 16:12:54 +08:00