Site breaks in Chrome/Edge when require-trusted-types-for
is enabled in CSP header
#1345
Labels
webui
Affects web-client code only
When
require-trusted-types-for: 'script'
is enabled in the Content Security Policy (CSP), the site fails to render in Edge and Chrome.Presumably this happens because the scripts inject raw strings into the DOM rather than appending typed values to the DOM. See the MDN docs.
The site renders in Safari and Firefox because those browsers do not yet support the
require-trusted-types-for
directive. Presumably they will support in the future, however.The text was updated successfully, but these errors were encountered: