From 72cb1b4b765de30610e6723cf1518cb4050af572 Mon Sep 17 00:00:00 2001 From: Will Scott Date: Fri, 2 Dec 2022 09:04:30 -0800 Subject: [PATCH] expected cors headers --- delegated_translator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delegated_translator.go b/delegated_translator.go index c752d72..d747d6c 100644 --- a/delegated_translator.go +++ b/delegated_translator.go @@ -35,7 +35,7 @@ func (dt *delegatedTranslator) find(w http.ResponseWriter, r *http.Request) { h := w.Header() h.Add("Access-Control-Allow-Origin", "*") - h.Add("Access-Control-Allow-Methods", "GET, POST, OPTIONS") + h.Add("Access-Control-Allow-Methods", "GET, PUT, OPTIONS") if r.Method == http.MethodOptions { w.WriteHeader(http.StatusOK) w.Write([]byte{})