From 502e1902d314c2945fb897c6eb671e1387fc94e7 Mon Sep 17 00:00:00 2001 From: luelista Date: Thu, 16 Jul 2026 15:59:05 +0200 Subject: [PATCH] Apply suggestion from @luelista I took this from the original implementation, but I think this actually isn't necessary? At least when I tested it, it works fine without, and I don't see how it would do anything, as the importmap is a script and not a style. --- src/pretix/base/templatetags/vite.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pretix/base/templatetags/vite.py b/src/pretix/base/templatetags/vite.py index 43b6caf688..9f8174a896 100644 --- a/src/pretix/base/templatetags/vite.py +++ b/src/pretix/base/templatetags/vite.py @@ -242,7 +242,6 @@ def vite_importmap(context): if request: csp_hash = calculate_csp_hash(json_string) add_to_response_csp_via_request(request, { - 'style-src': [csp_hash], 'script-src': [csp_hash], })