[core] Fix: Allow PATCH method in CORS

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-03-29 00:56:10 +02:00
parent dbcd28a8b0
commit cbf50ff928
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -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,
}, ", "))