Yong Wen Chua
d23c935a4a
Rename Options to Cors
2017-07-15 10:54:26 +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
16b89ab31c
Merge pull request #5 from lawliet89/preserve-existing
...
Preserve existing CORS requests
2017-07-14 15:45:40 +08:00
Yong Wen Chua
f1391281cd
Response unit tests
2017-07-14 15:35:44 +08:00
Yong Wen Chua
ca096ceb28
Extract headers integration tests
2017-07-14 13:54:34 +08:00
Yong Wen Chua
29952e182d
Refactor response building to preserve existing CORS headers
2017-07-14 13:29:54 +08:00
Yong Wen Chua
830b14afed
Move integration tests
2017-07-14 12:26:47 +08:00
Yong Wen Chua
8b6002653d
Serde skeleton
2017-07-14 11:16:07 +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
Yong Wen Chua
6aa97879f4
Add .travis.yml
2017-07-13 16:03:36 +08:00
Yong Wen Chua
e599112867
First commit
2017-07-13 15:51:04 +08:00