From d011581fde77fd5f64719dc1a2aa5a2f41c2a0ab Mon Sep 17 00:00:00 2001 From: OJOJIN Date: Thu, 25 Jan 2024 21:03:53 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20#65=20=EB=B0=B0=ED=8F=AC=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20cors=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/gachon/checkmate/global/config/CorsConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/gachon/checkmate/global/config/CorsConfig.java b/src/main/java/org/gachon/checkmate/global/config/CorsConfig.java index 9936a15..fe87719 100644 --- a/src/main/java/org/gachon/checkmate/global/config/CorsConfig.java +++ b/src/main/java/org/gachon/checkmate/global/config/CorsConfig.java @@ -17,6 +17,7 @@ public CorsFilter corsFilter() { config.setAllowCredentials(true); config.addAllowedOrigin("http://localhost:3000"); config.addAllowedOrigin("https://jxy.me"); //stomp 테스트를 위한 사이트 cors 등록 + config.addAllowedOrigin("https://check-mate-rho.vercel.app"); //stomp 테스트를 위한 사이트 cors 등록 config.addAllowedHeader("*"); config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); source.registerCorsConfiguration("/**", config);