Add PATCH
and HEAD
to the allowed HTTP methods in CORS responses (#1995)
This commit is contained in:
parent
bf8dee74eb
commit
c5d7eb7a2d
2 changed files with 5 additions and 1 deletions
1
changelogs/client_server/newsfragments/1995.feature
Normal file
1
changelogs/client_server/newsfragments/1995.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Add `PATCH` and `HEAD` to the allowed HTTP methods in CORS responses, as per [MSC4138](https://github.com/matrix-org/matrix-spec-proposals/pull/4138).
|
|
@ -314,9 +314,12 @@ respond with the CORS headers for that route. The recommended CORS
|
|||
headers to be returned by servers on all requests are:
|
||||
|
||||
Access-Control-Allow-Origin: *
|
||||
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
|
||||
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, PATCH, HEAD
|
||||
Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
|
||||
|
||||
{{% changed-in v="1.13" %}} `PATCH` and `HEAD` were added to the list for the
|
||||
`Access-Control-Allow-Methods` header.
|
||||
|
||||
## Server Discovery
|
||||
|
||||
In order to allow users to connect to a Matrix server without needing to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue