Issue Bug Closed

#109095Content-Security-Policy importmap borken if script-src-elem is set

Matthias Vogel 02/25/26, 09:55 updated 03/31/26, 08:09

Description

When an extension or project defines a script-src-elem rule,
the hash for the import map is not copied to the script-src-elem rule.
This violates the Content-Securtiy-Policy rule, and breaks the importmap.
Registering it as ‘script-src-elem’ ensures that the hash is always present in the correct rule.

Reviews 2

History 24

  1. Matthias Vogel commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-02-25T11:05:09+00:00" > 02/25/26, 11:05 </span>

    Applied in changeset commit:da8ca18b157fcb47d8783de97e1c0cc7964df0c6.