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

View file

@ -484,7 +484,16 @@
] ]
}, },
"symfony/form": { "symfony/form": {
"version": "v4.2.3" "version": "7.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "7.2",
"ref": "7d86a6723f4a623f59e2bf966b6aad2fc461d36b"
},
"files": [
"./config/packages/csrf.yaml"
]
}, },
"symfony/framework-bundle": { "symfony/framework-bundle": {
"version": "6.4", "version": "6.4",