update csrf

This commit is contained in:
Charles 2026-01-26 16:18:43 +01:00
parent 339d83cae2
commit ce4f045c00
1 changed files with 15 additions and 11 deletions

View File

@ -1,17 +1,21 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html # see https://symfony.com/doc/current/reference/configuration/framework.html
framework: framework:
secret: '%env(APP_SECRET)%' secret: '%env(APP_SECRET)%'
trusted_proxies: '%env(TRUSTED_PROXY)%' csrf_protection: true
http_method_override: true
annotations: false
handle_all_throwables: true
trusted_proxies: '%env(TRUSTED_PROXY)%'
# Note that the session will be started ONLY if you read or write from it. # Note that the session will be started ONLY if you read or write from it.
session: true session: true
#esi: true #esi: true
#fragments: true #fragments: true
when@test: when@test:
framework: framework:
test: true test: true
session: session:
storage_factory_id: session.storage.factory.mock_file storage_factory_id: session.storage.factory.mock_file