From 06803422da3794538cd9cd5c7ccd61a0694ef921 Mon Sep 17 00:00:00 2001 From: Echo Date: Fri, 12 Sep 2025 15:37:26 +0200 Subject: [PATCH] Make Vite respect CSP for styles (#36089) --- app/views/layouts/application.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index f5318d6c2..3418f6d95 100755 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -35,7 +35,7 @@ = vite_preload_file_tag "mastodon/locales/#{I18n.locale}.json" = csrf_meta_tags unless skip_csrf_meta_tags? - %meta{ name: 'style-nonce', content: request.content_security_policy_nonce } + %meta{ name: 'style-nonce', content: request.content_security_policy_nonce, property: 'csp-nonce', nonce: request.content_security_policy_nonce } = custom_stylesheet