Expand description
§CORS Middleware
A configurable CORS middleware that follows the WHATWG CORS specification.
§Features
- Full preflight (
OPTIONS) handling - Configurable origins:
*, explicit list, or echo - Credential support (with correct
Access-Control-Allow-Originbehavior) - Header/method validation
Access-Control-Expose-Headerssupport
Structs§
- Cors
Config - Configuration for CORS behavior.
- Cors
Middleware - CORS middleware implementing the
Middlewaretrait.
Enums§
- Allow
Origins - Policy for allowed origins.