#rocket #cors

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

#130 in Web programming

Download history 1596/week @ 2023-11-01 1650/week @ 2023-11-08 1642/week @ 2023-11-15 2269/week @ 2023-11-22 2225/week @ 2023-11-29 1952/week @ 2023-12-06 2009/week @ 2023-12-13 1721/week @ 2023-12-20 1176/week @ 2023-12-27 1916/week @ 2024-01-03 2335/week @ 2024-01-10 8016/week @ 2024-01-17 3729/week @ 2024-01-24 2509/week @ 2024-01-31 2559/week @ 2024-02-07 2216/week @ 2024-02-14

12,329 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–58MB
~1M SLoC