diff --git a/http/raw.go b/http/raw.go index 1312510b87..9bf982e98e 100644 --- a/http/raw.go +++ b/http/raw.go @@ -207,7 +207,7 @@ func rawFileHandler(w http.ResponseWriter, r *http.Request, file *files.FileInfo defer fd.Close() setContentDisposition(w, r, file) - + w.Header().Add("Content-Security-Policy", `script-src 'none';`) w.Header().Set("Cache-Control", "private") http.ServeContent(w, r, file.Name, file.ModTime, fd) return 0, nil