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

#2 in #cors

Download history 2805/week @ 2024-03-14 2998/week @ 2024-03-21 2751/week @ 2024-03-28 2560/week @ 2024-04-04 2498/week @ 2024-04-11 2833/week @ 2024-04-18 3349/week @ 2024-04-25 3050/week @ 2024-05-02 2871/week @ 2024-05-09 2542/week @ 2024-05-16 2868/week @ 2024-05-23 2838/week @ 2024-05-30 2606/week @ 2024-06-06 3716/week @ 2024-06-13 3215/week @ 2024-06-20 2726/week @ 2024-06-27

12,746 downloads per month
Used in 13 crates (9 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–51MB
~890K SLoC