Skip to content

Commit

Permalink
expected cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
willscott authored and masih committed Dec 3, 2022
1 parent 145bac0 commit 72cb1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delegated_translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit 72cb1b4

Please sign in to comment.