Available on crate feature
csrf only.Expand description
CSRF protection based on the double submit cookie pattern.
The token is stored in a cookie and must be echoed in a header (or a query
parameter, generally only for websocket). Checks are applied per route through
crate::build_router, and run after the auth checker.
Structsยง
- Middleware
- CSRF middleware, configured through
crate::build_router. - Middleware
Service