@@ -243,7 +243,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
243243 lang =" <%= locale != null ? locale. getLanguage() : GeneralUtilities . getDefaultLocale(). getLanguage() % >" style =" overflow-x :hidden " >
244244<head >
245245<title >Knowage</title >
246- <script type =" text/javascript" nonce =" rAnd0m " >
246+ <script type =" text/javascript" nonce =" <%= request . getAttribute( " cspNonce " ) % > " >
247247 // SERVICE WORKER REGISTRATION
248248 // if ('serviceWorker' in navigator) {
249249 // navigator.serviceWorker.register('../knowage-sw.js?version=' + "<%=it.eng.knowage.wapp.Version.getCompleteVersion()%>")
@@ -275,7 +275,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
275275 <![endif]-->
276276<!-- [if !IE]><!-->
277277<body class =" kn-main-body" >
278- <script type =" text/javascript" nonce =" rAnd0m " >
278+ <script type =" text/javascript" nonce =" <%= request . getAttribute( " cspNonce " ) % > " >
279279 if (/* @cc_on!@*/ false ) {
280280 document .documentElement .className += ' ie10' ;
281281 }
@@ -286,7 +286,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
286286
287287
288288
289- <script type =" text/javascript" nonce =" rAnd0m " >
289+ <script type =" text/javascript" nonce =" <%= request . getAttribute( " cspNonce " ) % > " >
290290
291291 Sbi = new Object ();
292292 Sbi .config = function () {
@@ -385,7 +385,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
385385 % >
386386
387387
388- <script type =" text/javascript" nonce =" rAnd0m " >
388+ <script type =" text/javascript" nonce =" <%= request . getAttribute( " cspNonce " ) % > " >
389389 document .onselectstart = function () { return true ; }
390390
391391 var enableUIO = < %= enableUIO% > ;
@@ -395,7 +395,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
395395
396396 </script >
397397
398- <script type =" text/javascript" nonce =" rAnd0m " >
398+ <script type =" text/javascript" nonce =" <%= request . getAttribute( " cspNonce " ) % > " >
399399 var PleaseRotateOptions = {
400400 message: " Please Rotate Your Device" ,
401401 subMessage: " For a better mobile experience" ,
0 commit comments