mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-28 05:49:32 +00: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
|
||||
Loading…
Add table
Add a link
Reference in a new issue