Skip to content

Commit

Permalink
[BUGFIX] Use Directive::ScriptSrcElem instead of Directive::ScriptScr
Browse files Browse the repository at this point in the history
This patch moves the hash for the SUPI_JS
  • Loading branch information
josefglatz committed May 6, 2024
1 parent e588086 commit 1e286b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/CSP/SupiPolicyExtender.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __invoke(PolicyMutatedEvent $event): void
$hashes = $this->cache->get($this->getCacheKey()) ?: [];

foreach ($hashes as $hash) {
$event->getCurrentPolicy()->extend(Directive::ScriptSrc, new HashValue($hash));
$event->getCurrentPolicy()->extend(Directive::ScriptSrcElem, new HashValue($hash));
}
}

Expand Down

0 comments on commit 1e286b0

Please sign in to comment.