Skip to content

Commit ef5d265

Browse files
authored
nonce in script ergänzt (#74)
1 parent 9aa129f commit ef5d265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Watson/Foundation/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function head(\rex_extension_point $ep)
3030
if ($js_properties) {
3131
$ep->setSubject($ep->getSubject()."\n".'
3232
33-
<script type="text/javascript">
33+
<script type="text/javascript" nonce="'.\rex_response::getNonce().'">
3434
if (typeof($watsonSettings) == "undefined") {
3535
var $watsonSettings = '.$js_properties.';
3636
}

0 commit comments

Comments
 (0)