actix-cors
Cross-Origin Resource Sharing (CORS) controls for Actix Web.
This middleware can be applied to both applications and resources. Once built, a [Cors] builder can be used as an argument for Actix Web's App::wrap(), Scope::wrap(), or Resource::wrap() methods.
This CORS middleware automatically handles OPTIONS preflight requests.
Crate Features
draft-private-network-access: ⚠️ Unstable. Adds opt-in support for the Private Network Access spec extensions. This feature is unstable since it will follow breaking changes in the draft spec until it is finalized.
Example
use Cors;
use ;
async
async
Documentation & Resources
- API Documentation
- Example Project
- Minimum Supported Rust Version (MSRV): 1.75