From 9c061df93ba9b953116ae1b09c519507375236f6 Mon Sep 17 00:00:00 2001 From: Bae Hyeonseo Date: Mon, 4 Dec 2023 16:49:19 +0900 Subject: [PATCH] =?UTF-8?q?[fix]:=20Main=20cors=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/Nunbody/config/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Nunbody/config/CorsConfig.java b/src/main/java/com/Nunbody/config/CorsConfig.java index 071cd57..06ef67b 100644 --- a/src/main/java/com/Nunbody/config/CorsConfig.java +++ b/src/main/java/com/Nunbody/config/CorsConfig.java @@ -16,7 +16,7 @@ public CorsFilter corsFilter() { CorsConfiguration config = new CorsConfiguration(); config.setAllowCredentials(true); config.addAllowedOrigin("http://localhost:5173"); -// config.addAllowedOrigin("프론트 도메인"); + config.addAllowedOrigin("https://www.richam.site/"); config.addAllowedHeader("*"); config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")); source.registerCorsConfiguration("/**",config);