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

#147 in Authentication

Download history 4700/week @ 2024-12-16 1562/week @ 2024-12-23 2111/week @ 2024-12-30 4245/week @ 2025-01-06 4573/week @ 2025-01-13 4450/week @ 2025-01-20 4742/week @ 2025-01-27 5508/week @ 2025-02-03 5520/week @ 2025-02-10 5093/week @ 2025-02-17 6263/week @ 2025-02-24 5403/week @ 2025-03-03 6378/week @ 2025-03-10 6112/week @ 2025-03-17 5097/week @ 2025-03-24 4751/week @ 2025-03-31

22,627 downloads per month
Used in 16 crates (12 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

~20–51MB
~855K SLoC