Skip to content

Commit 67b3514

Browse files
committed
nonce not working, fixing script
1 parent 053d9b0 commit 67b3514

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/routes/__layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<svelte:head>
5858
{#if config.umami_src}
59-
<script defer src={config.umami_src} data-website-id={config.umami_website_id} data-auto-track="false" nonce="2nIfswceidNic9zS">
59+
<script defer src={config.umami_src} data-website-id={config.umami_website_id} data-auto-track="false">
6060
</script>
6161
{/if}
6262
</svelte:head>

svelte.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const config = {
5959
"default-src": ["none"],
6060
"font-src": ["self"],
6161
"img-src": ["self"],
62-
"script-src": ["self", "https://umami.transdb.de", "2nIfswceidNic9zS"],
62+
"script-src": ["self", "https://umami.transdb.de", "unsafe-inline"],
6363
"style-src": ["self", "unsafe-inline"]
6464
} : {}
6565
}

0 commit comments

Comments
 (0)