From: Raphaƫl Gertz Date: Thu, 16 Oct 2025 15:23:01 +0000 (+0200) Subject: Enable csrf protection X-Git-Tag: 0.0.1~12 X-Git-Url: https://git.rapsys.eu/blog/commitdiff_plain/da0103c98a81031b312ceade6025c59e4c10cb1b Enable csrf protection --- diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 877eb25..f64e9d0 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -1,7 +1,7 @@ # see https://symfony.com/doc/current/reference/configuration/framework.html framework: secret: '%env(APP_SECRET)%' - #csrf_protection: true + csrf_protection: true # Note that the session will be started ONLY if you read or write from it. session: true