#rocket #cors

rocket_cors

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

16 unstable releases (5 breaking)

✓ Uses Rust 2018 edition

0.5.0-beta-1 Mar 18, 2019
0.4.0 Dec 13, 2018
0.4.0-rc.2 Nov 21, 2018
0.3.0 Jul 18, 2018
0.2.0 Jul 24, 2017

#137 in Web programming

Download history 268/week @ 2018-12-20 248/week @ 2018-12-27 243/week @ 2019-01-03 122/week @ 2019-01-10 138/week @ 2019-01-17 179/week @ 2019-01-24 227/week @ 2019-01-31 194/week @ 2019-02-07 356/week @ 2019-02-14 220/week @ 2019-02-21 289/week @ 2019-02-28 306/week @ 2019-03-07 366/week @ 2019-03-14 352/week @ 2019-03-21 266/week @ 2019-03-28

1,053 downloads per month
Used in 4 crates

MIT/Apache

123KB
2K SLoC

rocket_cors

Build Status Repository Crates.io

Cross-origin resource sharing (CORS) for Rocket applications

Requirements

  • Nightly Rust
  • Rocket >= 0.4

If you are using Rocket 0.3, use the 0.3.0 version of this crate.

Nightly Rust

Rocket requires nightly Rust. You should probably install Rust with rustup, then override the code directory to use nightly instead of stable. See installation instructions.

In particular, rocket_cors is currently targetted for the latest nightly. Older nightlies might work, but they are subject to the minimum that Rocket sets.

Installation

Add the following to Cargo.toml:

rocket_cors = "0.5.0-beta-1"

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

~6MB
~112K SLoC