#cors #rocket

rocket_cors

Cross-origin resource sharing (CORS) for Rocket.rs applications

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

#1084 in HTTP server

Download history 5899/week @ 2025-10-25 7202/week @ 2025-11-01 5360/week @ 2025-11-08 5668/week @ 2025-11-15 5112/week @ 2025-11-22 5569/week @ 2025-11-29 5580/week @ 2025-12-06 5818/week @ 2025-12-13 3415/week @ 2025-12-20 2940/week @ 2025-12-27 5436/week @ 2026-01-03 5671/week @ 2026-01-10 8269/week @ 2026-01-17 11258/week @ 2026-01-24 14070/week @ 2026-01-31 15572/week @ 2026-02-07

50,534 downloads per month
Used in 19 crates (15 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

~24–62MB
~1M SLoC