From e3a1283c3cc1de0452a14aaba06204cf0dabe9a0 Mon Sep 17 00:00:00 2001 From: DongHoon Lee <125895298+hoonyworld@users.noreply.github.com> Date: Sun, 1 Sep 2024 01:35:20 +0900 Subject: [PATCH] =?UTF-8?q?feat=20#202=20-=20allowedMethods=EC=97=90=20PAT?= =?UTF-8?q?CH=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20allowedOriginPatterns=EC=97=90=20=EB=8F=84=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20=EB=AA=85=EC=8B=9C=20(#203)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [#202] feat(WebConfig): PATCH 메서드 추가 및 allowedOriginPatterns에 도메인 명시 * [#202] feat(WebConfig): 클라이언트 localhost 주소 추가 * [#202] fix(WebConfig): 문자열 오타 수정 --- src/main/java/com/beat/global/common/config/WebConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/beat/global/common/config/WebConfig.java b/src/main/java/com/beat/global/common/config/WebConfig.java index ce53c953..3746f1bb 100644 --- a/src/main/java/com/beat/global/common/config/WebConfig.java +++ b/src/main/java/com/beat/global/common/config/WebConfig.java @@ -23,8 +23,8 @@ public void addArgumentResolvers(List resolvers) @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOriginPatterns("*") // 모든 도메인 허용 - .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") + .allowedOrigins("https://www.sinjibabo.shop", "https://www.beatlive.kr", "http://localhost:5173") + .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS") .allowedHeaders("*") .allowCredentials(true); }