Skip to content

Commit

Permalink
nonce in script ergänzt (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel authored Apr 19, 2023
1 parent 9aa129f commit ef5d265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Watson/Foundation/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function head(\rex_extension_point $ep)
if ($js_properties) {
$ep->setSubject($ep->getSubject()."\n".'
<script type="text/javascript">
<script type="text/javascript" nonce="'.\rex_response::getNonce().'">
if (typeof($watsonSettings) == "undefined") {
var $watsonSettings = '.$js_properties.';
}
Expand Down

0 comments on commit ef5d265

Please sign in to comment.