mirror of
https://github.com/pretix/pretix.git
synced 2026-08-11 10:57:00 +00:00
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.
This commit is contained in:
@@ -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],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user