63 releases (28 breaking)

new 0.66.0 Feb 15, 2024
0.65.1 Jan 23, 2024
0.63.1 Dec 21, 2023
0.59.0 Nov 30, 2023
0.37.6 Nov 29, 2022

#1028 in HTTP server

Download history 569/week @ 2023-10-29 531/week @ 2023-11-05 634/week @ 2023-11-12 635/week @ 2023-11-19 687/week @ 2023-11-26 819/week @ 2023-12-03 742/week @ 2023-12-10 816/week @ 2023-12-17 843/week @ 2023-12-24 733/week @ 2023-12-31 820/week @ 2024-01-07 857/week @ 2024-01-14 794/week @ 2024-01-21 954/week @ 2024-01-28 742/week @ 2024-02-04 1059/week @ 2024-02-11

3,665 downloads per month
Used in salvo

MIT/Apache

675KB
16K SLoC

salvo-csrf

CSRF (Cross-Site Request Forgery) middleware for Salvo.

This is offical crate, so you can enable it in Cargo.toml like this:

salvo = { version = "*", features=["csrf"] }

Docs


lib.rs:

CSRF middleware for Savlo web server framework.

CSRF middleware for Salvo that provides CSRF (Cross-Site Request Forgery) protection.

Data can be saved in Cookies via CookieStore or in session via SessionStore. SessionStore need to work with salvo-session crate.

Read more: https://salvo.rs

Dependencies

~18–34MB
~583K SLoC