From 09f3ddc93ca5544317e71a98b607b018b9982205 Mon Sep 17 00:00:00 2001 From: MasterPtato <23087326+MasterPtato@users.noreply.github.com> Date: Tue, 4 Jun 2024 18:35:13 +0000 Subject: [PATCH] fix: add patch to CORS (#848) ## Changes --- lib/api-helper/build/src/util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/api-helper/build/src/util.rs b/lib/api-helper/build/src/util.rs index 5fcecbcb30..89c32d1393 100644 --- a/lib/api-helper/build/src/util.rs +++ b/lib/api-helper/build/src/util.rs @@ -35,7 +35,7 @@ impl CorsConfigBuilder { pub fn public() -> Self { Self::default() .any_origin() - .methods(&["GET", "POST", "PUT", "DELETE"]) + .methods(&["GET", "POST", "PUT", "PATCH", "DELETE"]) .headers(&["Content-Type", "Authorization"]) .credentials() } @@ -44,7 +44,7 @@ impl CorsConfigBuilder { pub fn hub() -> Self { Self::default() .origin_regex(hub_origin_regex()) - .methods(&["GET", "POST", "PUT", "DELETE"]) + .methods(&["GET", "POST", "PUT", "PATCH", "DELETE"]) .headers(&["Content-Type", "Authorization"]) .credentials() }