{"id":64809,"library":"rocket-cors","title":"Rocket CORS","description":"Cross-origin resource sharing (CORS) support for Rocket.rs web applications.","status":"active","version":"0.6.0","language":"rust","source_language":null,"source_url":"https://github.com/lawliet89/rocket_cors","tags":["cors","rocket","web","middleware"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nrocket_cors = \"0.6.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add rocket_cors","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CorsOptions","correct":"use rocket_cors::CorsOptions;"}],"quickstart":{"code":"use rocket_cors::CorsOptions;\nuse rocket::Rocket;\n\nlet cors = CorsOptions::default().to_cors().unwrap();\nlet rocket = Rocket::ignite().attach(cors);","lang":"rust","description":"Attaches default CORS handling to a Rocket application."},"warnings":[{"fix":"Check compatibility with your Rocket version in Cargo.toml.","message":"Requires Rocket 0.5 or compatible version; may break with Rocket updates.","severity":"breaking","affected_versions":">=0.6.0"}],"env_vars":null,"search_vec":"'applic':13 'cor':2,8,14 'cross':4 'cross-origin':3 'middlewar':17 'origin':5 'resourc':6 'rocket':1,15 'rocket.rs':11 'share':7 'support':9 'web':12,16","created_at":"2026-06-17T17:00:29.924756+00:00","updated_at":"2026-06-17T17:00:29.924756+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/lawliet89/rocket_cors","github":"https://github.com/lawliet89/rocket_cors","docs":"https://docs.rs/rocket_cors/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}