From a0525b3ce6a35521500a4994601ab3708b4b7610 Mon Sep 17 00:00:00 2001 From: mikekks Date: Wed, 24 Apr 2024 13:19:02 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20cors=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/synk/meeteam/security/config/SecurityConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/synk/meeteam/security/config/SecurityConfig.java b/src/main/java/synk/meeteam/security/config/SecurityConfig.java index 15ae21cc..5a800cfa 100644 --- a/src/main/java/synk/meeteam/security/config/SecurityConfig.java +++ b/src/main/java/synk/meeteam/security/config/SecurityConfig.java @@ -61,9 +61,10 @@ public WebMvcConfigurer corsConfigurer() { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("https://meeteam.co.kr", "https://www.meeteam.co.kr","http://localhost:5173", "http://localhost:8080") + .allowedOrigins("https://meeteam.co.kr", "https://www.meeteam.co.kr","http://localhost:5173", + "http://localhost:8080", "https://api.meeteam.co.kr") .allowedOriginPatterns("https://meeteam.co.kr", "https://www.meeteam.co.kr", "http://localhost:5173", - "http://localhost:8080") + "http://localhost:8080", "https://api.meeteam.co.kr") .allowedMethods( HttpMethod.GET.name(), HttpMethod.POST.name(),