mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Move stateless CSRF config to packages/csrf.yaml
This commit is contained in:
@@ -8,11 +8,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user