From e1b9ab4b9a2dfdb80218d953ecd75c1ca03c7915 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Tue, 16 Nov 2021 23:47:25 +0000 Subject: [PATCH] [TWIG] Added CSP in base template meta tag. This isn't optimal. --- templates/base.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/base.html.twig b/templates/base.html.twig index 30d0b11327..13d408355f 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -2,6 +2,8 @@ {% block meta %} + {# This is far from perfect. The response headers should already come with this. #} + {% if app.request.server.get('APP_ENV') not in ['test', 'dev'] %}{% endif %}