Expand description
CORS (Cross-Origin Resource Sharing) middleware for HTTP handlers.
Wraps an existing Handler to add CORS headers and handle
preflight OPTIONS requests.
Structs§
- Cors
Config - CORS configuration.
Functions§
- cors_
preflight_ handler - Create a standalone CORS preflight handler for OPTIONS routes.
- with_
cors - Wrap a handler with CORS support.