Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adayoung/axum-csrf-form-example

Hi! This is a minimal example to demonstrate csrf failing across application restart despite static key.
https://github.com/adayoung/axum-csrf-form-example

Last synced: 12 days ago
JSON representation

Hi! This is a minimal example to demonstrate csrf failing across application restart despite static key.

Awesome Lists containing this project

README

        

1. cargo run
2. Open http://localhost:2024/
3. Submit form on the browser -> note token is valid
4. Open http://localhost:2024/ again (in a new tab or from the address bar)
5. Stop cargo run with ctrl-c and start it again
6. Submit form in the still open page from step 4 -> note token is not valid

We were missing salt! Adding salt fixed everything. Yay salt!