From 5dd21750595133ebe35f0a9d4a0241b0ed91bc99 Mon Sep 17 00:00:00 2001 From: Keval Kapdee Date: Wed, 3 Jul 2024 11:02:53 +0100 Subject: [PATCH] Invalid self csp --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9a70197..aa0c99a 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func main() { cspParts := []string{"default-src 'self'", "style-src 'self' 'unsafe-inline'"} scriptSources := []string{"unpkg.com"} - connectSources := []string{"self"} + connectSources := []string{"'self'"} if cfg.Plausible.ScriptUrl != "" { scriptSources = append(scriptSources, cfg.Plausible.Origin) connectSources = append(connectSources, cfg.Plausible.Origin)