mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 03:00:14 +00:00
🤖 Auto commit for release 'develop' on 2025-05-04
This commit is contained in:
@@ -45,7 +45,7 @@ class SecureHeaders
|
||||
// generate and share nonce.
|
||||
$nonce = base64_encode(random_bytes(16));
|
||||
Vite::useCspNonce($nonce);
|
||||
if (class_exists(\Barryvdh\Debugbar\Facades\Debugbar::class)) {
|
||||
if (class_exists(Debugbar::class)) {
|
||||
Debugbar::getJavascriptRenderer()->setCspNonce($nonce);
|
||||
}
|
||||
app('view')->share('JS_NONCE', $nonce);
|
||||
|
Reference in New Issue
Block a user