Merge pull request #1337 from symfony/csrf-double-submit

Enable stateless headers/cookies-based CSRF protection
This commit is contained in:
Fabien Potencier
2024-11-17 10:14:14 +01:00
committed by GitHub
7 changed files with 142 additions and 0 deletions
@@ -8,6 +8,11 @@ framework:
#esi: true
#fragments: true
# Enable stateless CSRF protection for forms and logins/logouts
form: { csrf_protection: { token_id: submit } }
csrf_protection:
stateless_token_ids: [submit, authenticate, logout]
when@test:
framework:
test: true