diff --git a/http.go b/http.go index b93a5ba2dc001cc18de1875fdb5a97e6ca3ddac2..24c62cbc0273c586a17c1240a5e256872dda9a70 100644 --- a/http.go +++ b/http.go @@ -273,11 +273,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) return } - if r.Method == http.MethodOptions { - w.Header().Set("Access-Control-Allow-Origin", "*") - w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE") - w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization") - } if code, err := validateRequest(r); err != nil { http.Error(w, err.Error(), code) return