Registry / web-framework / rocket-cors

rocket-cors

JSON →
library0.6.0rscratesunverified

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

# Cargo.toml [dependencies] rocket_cors = "0.6.0"
INSTALL
IMPORT
SIG · ROCKET-CORS
R
rocket-cors
web-frameworkrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CorsOptions
✓ use rocket_cors::CorsOptions;

Attaches default CORS handling to a Rocket application.

use rocket_cors::CorsOptions; use rocket::Rocket; let cors = CorsOptions::default().to_cors().unwrap(); let rocket = Rocket::ignite().attach(cors);
Debug
Known issues
breakingRequires Rocket 0.5 or compatible version; may break with Rocket updates.
fix
Check compatibility with your Rocket version in Cargo.toml.
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
2
Resources
rocket-cors — cargo add rocket-cors · libregistry