CORS for DELETE

master
Bel LaPointe 2020-07-25 19:32:59 -06:00
parent 1af274dc1d
commit 9b0bccd9ca
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}