Project

General

Profile

Task #100140 ยป trigger.patch

Oliver Hader, 2023-03-23 12:09

View differences:

typo3/sysext/backend/Configuration/ContentSecurityPolicies.php
new Mutation(MutationMode::Extend, Directive::ScriptSrc, SourceKeyword::nonceProxy),
// `style-src 'unsafe-inline'` required for lit in safari and firefox to allow inline <style> tags
// (for browsers that do not support https://caniuse.com/mdn-api_shadowroot_adoptedstylesheets)
new Mutation(MutationMode::Extend, Directive::StyleSrc, SourceKeyword::unsafeInline),
new Mutation(MutationMode::Extend, Directive::StyleSrc, SourceKeyword::unsafeInline, SourceKeyword::nonceProxy),
// `style-src-attr 'unsafe-inline'` required for remaining inline styles, which is okay for color & dimension
// (e.g. `<div style="color: #000">` - but NOT having the possibility to use any other assets/files/URIs)
new Mutation(MutationMode::Set, Directive::StyleSrcAttr, SourceKeyword::unsafeInline),
    (1-1/1)