From 8f625fb775771f63c352220f62a5e3633389ddab Mon Sep 17 00:00:00 2001 From: syahn <496300@naver.com> Date: Sun, 17 Dec 2023 20:33:10 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20corsConfig=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/catchyou/api/config/security/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Api/src/main/java/com/catchyou/api/config/security/CorsConfig.java b/Api/src/main/java/com/catchyou/api/config/security/CorsConfig.java index 661fad3..449d7e9 100644 --- a/Api/src/main/java/com/catchyou/api/config/security/CorsConfig.java +++ b/Api/src/main/java/com/catchyou/api/config/security/CorsConfig.java @@ -21,7 +21,7 @@ public void addCorsMappings(CorsRegistry registry) { String[] patterns = allowedOriginPatterns.toArray(String[]::new); registry.addMapping("/**") .allowedMethods("*") - .allowedOriginPatterns("*") + .allowedOriginPatterns("*", "http://localhost:5173") .exposedHeaders("Set-Cookie") .allowCredentials(true); }