Skip to content

Commit

Permalink
fix!(ContentSecurityPolicy): Make strict-dynamic enabled by default…
Browse files Browse the repository at this point in the history
… on `script-src-elem`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Nov 17, 2023
1 parent 7df9eb3 commit c209295
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 77 deletions.
2 changes: 1 addition & 1 deletion lib/public/AppFramework/Http/ContentSecurityPolicy.php
Expand Up @@ -49,7 +49,7 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
/** @var bool Whether strict-dynamic should be set */
protected $strictDynamicAllowed = false;
/** @var bool Whether strict-dynamic should be set for 'script-src-elem' */
protected $strictDynamicAllowedOnScripts = false;
protected $strictDynamicAllowedOnScripts = true;
/** @var array Domains from which scripts can get loaded */
protected $allowedScriptDomains = [
'\'self\'',
Expand Down

0 comments on commit c209295

Please sign in to comment.