From 4ae7a4488133f6fad56ac67fc5b82eef30300de6 Mon Sep 17 00:00:00 2001 From: boris Date: Fri, 28 Nov 2025 08:59:28 +0000 Subject: [PATCH] Update trusted proxies configuration to use default environment variable and add importmap block in base template --- config/packages/framework.yaml | 2 +- templates/base.html.twig | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index 21ac91d..36a1b54 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)%' - trusted_proxies: '%env(TRUSTED_PROXIES)%' + trusted_proxies: '%env(default::TRUSTED_PROXIES)%' trusted_headers: ['x-forwarded-for','x-forwarded-proto','x-forwarded-port','x-forwarded-host','x-forwarded-prefix'] # Note that the session will be started ONLY if you read or write from it. diff --git a/templates/base.html.twig b/templates/base.html.twig index 5ac1c43..e77d1f1 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -39,6 +39,9 @@ + {% block javascripts %} + {% block importmap %}{{ importmap('app') }}{% endblock %} + {% endblock %} {% include '_partials/auth_modal.html.twig' %}