Skip to content

Commit

Permalink
update recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Dec 23, 2024
1 parent 8bc68d2 commit 745e97e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions config/packages/csrf.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 10 additions & 1 deletion symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,16 @@
]
},
"symfony/form": {
"version": "v5.2.0"
"version": "7.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "7.2",
"ref": "7d86a6723f4a623f59e2bf966b6aad2fc461d36b"
},
"files": [
"config/packages/csrf.yaml"
]
},
"symfony/framework-bundle": {
"version": "7.2",
Expand Down

0 comments on commit 745e97e

Please sign in to comment.