From 58a041aafe9eb064ef78fffaab0ab88a4436f686 Mon Sep 17 00:00:00 2001 From: kimday0326 Date: Fri, 26 Jul 2024 23:43:51 +0900 Subject: [PATCH] =?UTF-8?q?!hotfix:=20CORS=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sponus/coreinfrasecurity/config/CorsConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-infra-security/src/main/java/com/sponus/coreinfrasecurity/config/CorsConfig.java b/core/core-infra-security/src/main/java/com/sponus/coreinfrasecurity/config/CorsConfig.java index d4bb8e4b..f4745049 100644 --- a/core/core-infra-security/src/main/java/com/sponus/coreinfrasecurity/config/CorsConfig.java +++ b/core/core-infra-security/src/main/java/com/sponus/coreinfrasecurity/config/CorsConfig.java @@ -24,6 +24,9 @@ public static CorsConfigurationSource apiConfigurationSource() { ArrayList allowedHttpMethods = new ArrayList<>(); allowedHttpMethods.add("GET"); allowedHttpMethods.add("POST"); + allowedHttpMethods.add("PUT"); + allowedHttpMethods.add("PATCH"); + allowedHttpMethods.add("DELETE"); configuration.setAllowedOrigins(allowedOriginPatterns); configuration.setAllowedMethods(allowedHttpMethods);