mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2026-06-04 01:18:12 -06:00
feat: add CSRF protection to all POST forms
Installs Flask-WTF and enables CSRFProtect globally. Adds csrf_token hidden fields to all four POST forms (login, delete entry, add user, delete user, and the public guestbook form). Exempts the API endpoint which uses header-based key auth instead.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Flask>=3.1.3
|
||||
Flask-WTF>=1.2
|
||||
Werkzeug>=3.0.6
|
||||
Flask-Limiter>=3.0
|
||||
Flask-Login>=0.6
|
||||
|
||||
Reference in New Issue
Block a user