From a8219b320ba32e0cf20e78f22adfd7c4f3c55029 Mon Sep 17 00:00:00 2001 From: chahyunsoo Date: Thu, 9 May 2024 23:14:43 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20:=20CorsConfig=20=EA=B2=BD=EB=A1=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/seoul/gonggong/global/config/CorsConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/seoul/gonggong/global/config/CorsConfig.java b/src/main/java/seoul/gonggong/global/config/CorsConfig.java index d74a3c5..63deee1 100644 --- a/src/main/java/seoul/gonggong/global/config/CorsConfig.java +++ b/src/main/java/seoul/gonggong/global/config/CorsConfig.java @@ -17,7 +17,8 @@ public CorsFilter corsFilter() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowCredentials(true); - configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://bokdakbang.store")); + configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://bokdakbang.store", + "https://bokdak-bang.vercel.app")); configuration.addAllowedHeader("*"); configuration.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));