diff --git a/themes/vuetifyCore/VuetifyWebPage.php b/themes/vuetifyCore/VuetifyWebPage.php index 49bd934..8dba59e 100644 --- a/themes/vuetifyCore/VuetifyWebPage.php +++ b/themes/vuetifyCore/VuetifyWebPage.php @@ -40,11 +40,11 @@ public function __construct() { $p->addBeforeRender(function (VuetifyWebPage $p2) { $jsCode = new HTMLNode('script', [ 'id' => 'server-json-data', - 'nonce' => hash('sha256', microtime().'-'.random_bytes(10)) + 'nonce' => str_replace('=','',base64_encode(hash('sha256', microtime().'-'. random_bytes(10)))) ]); $jsCode->text('data = '.$p2->getJson(), false); $p2->getDocument()->getHeadNode()->addChild($jsCode); - }); + },100); }, 100); $this->jsonData = new Json(); }