Commit Graph

12 Commits

Author SHA1 Message Date
Yong Wen Chua 715913a6b3 Gate serde behind a feature flag (#25)
* Gate serde behind a feature flag

Fixes #16

* Fix travis build configuration
2017-09-05 14:11:28 +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 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 c6403fcffd Tag to 0.0.1 2017-07-17 16:30:45 +08:00
Yong Wen Chua eb98ae33bc Implement Serde (De)serialization for `Cors` struct (#7)
* Add serde support for Method

* "Turn on" serde

* Add Serde support for UniCase

* Fix merge error

* Add default tests
2017-07-17 16:22:45 +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 e599112867 First commit 2017-07-13 15:51:04 +08:00