From 6a74fbc082cd1de9d8930e147cf8694ab0244774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petteri=20R=C3=A4ty?= Date: Thu, 30 Apr 2020 02:28:28 +0300 Subject: [PATCH] Add CSP tags to default layout This is needed to get Trix and CSP to play together. --- app/views/layouts/administrate/application.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/layouts/administrate/application.html.erb b/app/views/layouts/administrate/application.html.erb index f6f2b29e3b..738f39801f 100644 --- a/app/views/layouts/administrate/application.html.erb +++ b/app/views/layouts/administrate/application.html.erb @@ -23,6 +23,7 @@ By default, it renders: <%= render "stylesheet" %> <%= csrf_meta_tags %> + <%= csp_meta_tag if defined?(csp_meta_tag) %> <%= render "icons" %>