add PATCH to list of allowed HTTP methods in CORS (MSC4138)
https://github.com/matrix-org/matrix-spec-proposals/pull/4138 we already had HEAD Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
a198f0481a
commit
11ec0dff4f
1 changed files with 2 additions and 1 deletions
|
@ -131,9 +131,10 @@ fn request_result_log(method: &Method, uri: &Uri, result: &axum::response::Respo
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cors_layer(_server: &Server) -> CorsLayer {
|
fn cors_layer(_server: &Server) -> CorsLayer {
|
||||||
const METHODS: [Method; 6] = [
|
const METHODS: [Method; 7] = [
|
||||||
Method::GET,
|
Method::GET,
|
||||||
Method::HEAD,
|
Method::HEAD,
|
||||||
|
Method::PATCH,
|
||||||
Method::POST,
|
Method::POST,
|
||||||
Method::PUT,
|
Method::PUT,
|
||||||
Method::DELETE,
|
Method::DELETE,
|
||||||
|
|
Loading…
Add table
Reference in a new issue