diff --git a/go/main.go b/go/main.go index 47c5d4e..f6ee66b 100644 --- a/go/main.go +++ b/go/main.go @@ -76,8 +76,6 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) { } // Setzen der Content Security Policy - //w.Header().Set("Content-Security-Policy", "default-src 'self'; script-src 'self'; object-src 'none';") - //w.Header().Set("Content-Security-Policy", fmt.Sprintf("default-src 'self'; script-src 'self' 'nonce-%s'; object-src 'none';", nonce)) w.Header().Set("Content-Security-Policy", fmt.Sprintf("script-src 'self' 'nonce-%s';", nonce)) mu.Lock() diff --git a/templates/uploadSuccess.html b/templates/uploadSuccess.html index 66895d6..15f19a9 100644 --- a/templates/uploadSuccess.html +++ b/templates/uploadSuccess.html @@ -15,21 +15,9 @@ - +