mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 09:16:23 +02:00
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
ab2d21afdd
commit
6d2aa1b886
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