Updated symfony form recipe

This commit is contained in:
Jan Böhmer 2025-07-13 16:29:27 +02:00
parent 4e1bd486e8
commit 1933234ed4
2 changed files with 21 additions and 1 deletions

11
config/packages/csrf.yaml Normal file
View file

@ -0,0 +1,11 @@
# Enable stateless CSRF protection for forms and logins/logouts
framework:
form:
csrf_protection:
token_id: submit
csrf_protection:
stateless_token_ids:
- submit
- authenticate
- logout