Skip to content

Commit

Permalink
Remove redundant nonce setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Feb 5, 2025
1 parent 0543362 commit 13ff958
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,6 @@ protected function outputScriptAssets($position): string
if ($script['allowArbitraryAttrs'] ?? false) {
$scriptHelper->setAllowArbitraryAttributes(true);
}
// Add nonce to output:
if (!empty($this->cspNonce)) {
$script['attrs']['nonce'] = $this->cspNonce;
}
// Every $script will have either a script attribute (inline JS) or a src attribute (file):
if (isset($script['script'])) {
$output[] = $this->outputInlineScript($script['script'], $script['type'], $script['attrs']);
Expand Down

0 comments on commit 13ff958

Please sign in to comment.