https://github.com/lawliet89/rocket_cors
Cross-origin resource sharing (CORS) for Rocket.rs applications
https://github.com/lawliet89/rocket_cors
cors hacktoberfest rocket rust
Last synced: about 1 year ago
JSON representation
Cross-origin resource sharing (CORS) for Rocket.rs applications
- Host: GitHub
- URL: https://github.com/lawliet89/rocket_cors
- Owner: lawliet89
- License: apache-2.0
- Created: 2017-07-13T07:46:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T00:42:55.000Z (over 2 years ago)
- Last Synced: 2025-05-11T12:49:18.503Z (about 1 year ago)
- Topics: cors, hacktoberfest, rocket, rust
- Language: Rust
- Homepage: https://lawliet89.github.io/rocket_cors/
- Size: 1.07 MB
- Stars: 104
- Watchers: 5
- Forks: 71
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# rocket_cors
[](https://github.com/lawliet89/rocket_cors/actions/workflows/rust.yml)
[](https://github.com/lawliet89/rocket_cors)
[](https://crates.io/crates/rocket_cors)
- Documentation: [master branch](https://lawliet89.github.io/rocket_cors) | [stable](https://docs.rs/rocket_cors)
Cross-origin resource sharing (CORS) for [Rocket](https://rocket.rs/) 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:
```toml
rocket_cors = "0.6.0"
```
To use the latest `master` branch, for example:
```toml
rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", branch = "master" }
```
## Reference
- [W3C CORS Recommendation](https://www.w3.org/TR/cors/#resource-processing-model)
## License
`rocket_cors` is licensed under either of the following, at your option:
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)