From 9b0bccd9ca8368e9e2efffbc9352270e3ad305a3 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Sat, 25 Jul 2020 19:32:59 -0600 Subject: [PATCH] CORS for DELETE --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 27c08dd..7fa9c5a 100755 --- a/server/server.go +++ b/server/server.go @@ -108,7 +108,7 @@ func (s *Server) doAuth(foo http.HandlerFunc) http.HandlerFunc { if r.Method == "OPTIONS" { w.Header().Set("Content-Length", "0") w.Header().Set("Content-Type", "text/plain") - w.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS, TRACE, PATCH, HEAD") + w.Header().Set("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS, TRACE, PATCH, HEAD, DELETE") return } }