diff options
author | Matthew Hodgson <matthew@matrix.org> | 2020-09-27 22:23:42 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2020-09-27 22:23:42 +0100 |
commit | 5bbe73747c8fea387c97c79de3917e61b487c646 (patch) | |
tree | 8aa2a7e5356f3b0bd14ab5e8415108b89f666c24 /clientapi/routing | |
parent | 63af00d5d5715ade0276fe3f4ff8b406689b30f4 (diff) |
unbreak CORS on /capabilities.
fixes https://github.com/vector-im/element-web/issues/15297
Diffstat (limited to 'clientapi/routing')
-rw-r--r-- | clientapi/routing/routing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/routing.go b/clientapi/routing/routing.go index 999946a6..ab56c5f4 100644 --- a/clientapi/routing/routing.go +++ b/clientapi/routing/routing.go @@ -793,7 +793,7 @@ func Setup( } return GetCapabilities(req, rsAPI) }), - ).Methods(http.MethodGet) + ).Methods(http.MethodGet, http.MethodOptions) // Supplying a device ID is deprecated. r0mux.Handle("/keys/upload/{deviceID}", |