From ce4f045c00c34b67be4f43aaf1d2d2f0a617432a Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 26 Jan 2026 16:18:43 +0100 Subject: [PATCH] update csrf --- config/packages/framework.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index ed31882..58ba733 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -1,17 +1,21 @@ # see https://symfony.com/doc/current/reference/configuration/framework.html framework: - secret: '%env(APP_SECRET)%' - trusted_proxies: '%env(TRUSTED_PROXY)%' - + secret: '%env(APP_SECRET)%' + 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. - session: true - #esi: true - #fragments: true + # Note that the session will be started ONLY if you read or write from it. + session: true + + #esi: true + #fragments: true when@test: - framework: - test: true - session: - storage_factory_id: session.storage.factory.mock_file + framework: + test: true + session: + storage_factory_id: session.storage.factory.mock_file