diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fce9e1cd44..1204c3bd857 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ need to update any InfluxDB CLI config profiles with the new port number. 1. [19392](https://github.com/influxdata/influxdb/pull/19392): Include the edge of the boundary we are observing. 1. [19453](https://github.com/influxdata/influxdb/pull/19453): Warn about duplicate tag names during influx write csv. 1. [19466](https://github.com/influxdata/influxdb/pull/19466): Do not override existing line part in group annotation. +1. [19637](https://github.com/influxdata/influxdb/pull/19637): Added PATCH to the list of allowed methods ## v2.0.0-beta.16 [2020-08-07] diff --git a/kit/transport/http/middleware.go b/kit/transport/http/middleware.go index 3450c12f1f2..4ca1032c05f 100644 --- a/kit/transport/http/middleware.go +++ b/kit/transport/http/middleware.go @@ -26,7 +26,7 @@ func SetCORS(next http.Handler) http.Handler { } if r.Method == http.MethodOptions { // allow and stop processing in pre-flight requests - w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE") + w.Header().Set("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE, PATCH") w.Header().Set("Access-Control-Allow-Headers", "Accept, Content-Type, Content-Length, Accept-Encoding, Authorization, User-Agent") w.WriteHeader(http.StatusNoContent) return