From 1297764c23e2fb0a4ad059af7a10e1f1a3991161 Mon Sep 17 00:00:00 2001 From: oxdjww Date: Sat, 11 May 2024 16:47:30 +0900 Subject: [PATCH] fix: add domain name to cors config --- src/main/java/com/soongsil/CoffeeChat/config/CorsMvcConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/soongsil/CoffeeChat/config/CorsMvcConfig.java b/src/main/java/com/soongsil/CoffeeChat/config/CorsMvcConfig.java index e4042ea..d9020e3 100644 --- a/src/main/java/com/soongsil/CoffeeChat/config/CorsMvcConfig.java +++ b/src/main/java/com/soongsil/CoffeeChat/config/CorsMvcConfig.java @@ -11,7 +11,7 @@ public void addCorsMappings(CorsRegistry corsRegistry) { corsRegistry.addMapping("/**") //모든 경로에서 매핑 진행 .exposedHeaders("Set-Cookie") //노출할 헤더값은 쿠키헤더 - .allowedOrigins("http://localhost:3000"); //리액트서버주소에서 허용 + .allowedOrigins("http://localhost:3000", "https://cogo.run/**"); //리액트서버주소에서 허용 } }