Disable CSP headers for the time being

This commit is contained in:
Seednode 2024-02-08 21:17:47 -06:00
parent c3725bb504
commit c6c1cf7e5d
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ import (
const ( const (
AllowedCharacters string = `^[A-z0-9.\-_]+$` AllowedCharacters string = `^[A-z0-9.\-_]+$`
ReleaseVersion string = "8.7.0" ReleaseVersion string = "8.7.1"
) )
var ( var (

View File

@ -312,7 +312,11 @@ func serveMedia(paths []string, index *fileIndex, filename *regexp.Regexp, forma
return 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)) mediaType := format.MediaType(filepath.Ext(path))