15 releases

0.6.0 Nov 18, 2023
0.6.0-alpha2 Mar 25, 2023
0.6.0-alpha1 Jan 13, 2022
0.5.2 Mar 18, 2020
0.2.0 Jul 24, 2017

#113 in Web programming

Download history 3296/week @ 2024-01-12 7942/week @ 2024-01-19 2238/week @ 2024-01-26 2245/week @ 2024-02-02 2197/week @ 2024-02-09 2619/week @ 2024-02-16 2479/week @ 2024-02-23 2809/week @ 2024-03-01 2688/week @ 2024-03-08 2962/week @ 2024-03-15 2800/week @ 2024-03-22 2876/week @ 2024-03-29 2473/week @ 2024-04-05 2508/week @ 2024-04-12 2895/week @ 2024-04-19 2751/week @ 2024-04-26

11,159 downloads per month
Used in 14 crates (10 directly)

MIT/Apache

135KB
2.5K SLoC

rocket_cors

Continuous integration Repository Crates.io

Cross-origin resource sharing (CORS) for Rocket applications

Requirements

  • Rocket >= 0.4

If you are using Rocket 0.3, use the 0.3.0 version of this crate.

Installation

Add the following to Cargo.toml:

rocket_cors = "0.6.0"

To use the latest master branch, for example:

rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", branch = "master" }

Reference

License

rocket_cors is licensed under either of the following, at your option:

Dependencies

~19–55MB
~1M SLoC