Skip to content

Firefly III: a personal finances manager

Catch missing nonce

James Cole831d39a41ee0
diff --git a/resources/views/layout/v2/error.blade.php b/resources/views/layout/v2/error.blade.php
index 7c1a5967b0..ea4887609e 100644
--- a/resources/views/layout/v2/error.blade.php
+++ b/resources/views/layout/v2/error.blade.php
@@ -15,7 +15,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="color-scheme" content="light dark">
- <script type="text/javascript" nonce="{{ $JS_NONCE }}">
+ <script type="text/javascript" nonce="{{ $JS_NONCE ?? 'none' }}">
/*!
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors