mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 14:28:42 +02:00
Updated symfony form recipe
This commit is contained in:
parent
4e1bd486e8
commit
1933234ed4
2 changed files with 21 additions and 1 deletions
11
config/packages/csrf.yaml
Normal file
11
config/packages/csrf.yaml
Normal 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
|
11
symfony.lock
11
symfony.lock
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue