mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 03:41:16 +00:00
[core] Fix: Allow PATCH method in CORS
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
dbcd28a8b0
commit
cbf50ff928
1 changed files with 1 additions and 0 deletions
1
cors.go
1
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,
|
||||
}, ", "))
|
||||
|
|
Loading…
Reference in a new issue