From c6c1cf7e5dcaf71ff6d0f79bc0e793791f9f2584 Mon Sep 17 00:00:00 2001 From: Seednode Date: Thu, 8 Feb 2024 21:17:47 -0600 Subject: [PATCH] Disable CSP headers for the time being --- cmd/root.go | 2 +- cmd/web.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 999d5dd..f0df469 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,7 +17,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "8.7.0" + ReleaseVersion string = "8.7.1" ) var ( diff --git a/cmd/web.go b/cmd/web.go index 5846a58..7b1245d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -312,7 +312,11 @@ func serveMedia(paths []string, index *fileIndex, filename *regexp.Regexp, forma return } - nonce := format.CSP(w) + // Temporarily disabled until I figure out how to make things + // work properly with inline event handlers. + // nonce := format.CSP(w) + nonce := "" + mediaType := format.MediaType(filepath.Ext(path))