unbreak CORS on /capabilities.

fixes https://github.com/vector-im/element-web/issues/15297
This commit is contained in:
Matthew Hodgson 2020-09-27 22:23:42 +01:00
parent 63af00d5d5
commit 5bbe73747c
3 changed files with 4 additions and 2 deletions

View file

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