From 1078e3d3e0c75b8c7f8440b66074771852d64ca7 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 1 Apr 2024 13:06:01 +0200 Subject: [PATCH] add auto copy support --- go/main.go | 2 -- templates/uploadSuccess.html | 20 ++++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) 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 @@ - +