| Crates.io | actix-csrf-middleware |
| lib.rs | actix-csrf-middleware |
| version | 0.5.3 |
| created_at | 2025-09-08 10:35:52.734964+00 |
| updated_at | 2025-09-13 02:21:04.651371+00 |
| description | CSRF protection middleware for Actix Web applications. Supports double submit cookie and synchronizer token patterns (with actix-session) out of the box. Flexible, easy to configure, and includes test coverage for common attacks and edge cases. |
| homepage | |
| repository | https://github.com/yoozzeek/actix-csrf-middleware |
| max_upload_size | |
| id | 1829119 |
| size | 234,372 |
CSRF protection middleware for Actix Web applications. Supports double submit cookie and synchronizer token patterns (with actix-session) out of the box. Flexible, easy to configure, and includes test coverage for common attacks and edge cases.
WARNING: This crate has not been audited and may contain bugs and security flaws. This implementation is NOT ready for production use.
actix-sessionapplication/jsonapplication/x-www-form-urlencodedmultipart/form-data requests without expensive body reading in middlewarePOST,PUT,PATCH,DELETE) http requests; supports per-path CSRF exclusion
via skip_for.Minimal runnable examples are provided in the examples directory:
actix-session): examples/synchronizer-tokenThis project is licensed under the MIT License. See LICENSE for details.