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

#223 in Web programming

Download history 3157/week @ 2024-07-20 3373/week @ 2024-07-27 3991/week @ 2024-08-03 4391/week @ 2024-08-10 4644/week @ 2024-08-17 5609/week @ 2024-08-24 5407/week @ 2024-08-31 4654/week @ 2024-09-07 4114/week @ 2024-09-14 4842/week @ 2024-09-21 4047/week @ 2024-09-28 3479/week @ 2024-10-05 3769/week @ 2024-10-12 4503/week @ 2024-10-19 4892/week @ 2024-10-26 4822/week @ 2024-11-02

18,465 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–51MB
~869K SLoC