From cbf50ff928f5174c0c4130db50fda6101131ee42 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 29 Mar 2022 00:56:10 +0200 Subject: [PATCH] [core] Fix: Allow PATCH method in CORS Signed-off-by: Knut Ahlers --- cors.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cors.go b/cors.go index fae1577..d720eb5 100644 --- a/cors.go +++ b/cors.go @@ -22,6 +22,7 @@ func corsMiddleware(h http.Handler) http.Handler { w.Header().Set("Access-Control-Allow-Methods", strings.Join([]string{ http.MethodDelete, http.MethodGet, + http.MethodPatch, http.MethodPost, http.MethodPut, }, ", "))