From 52b8358fcf4ffd49a87527d521bc5fee5c8cddf5 Mon Sep 17 00:00:00 2001 From: Seonghun Jeong Date: Fri, 15 Nov 2024 13:47:57 +0900 Subject: [PATCH] =?UTF-8?q?deploy:=20cors=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/sinitto/common/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/sinitto/common/config/WebConfig.java b/src/main/java/com/example/sinitto/common/config/WebConfig.java index 75558393..29547a49 100644 --- a/src/main/java/com/example/sinitto/common/config/WebConfig.java +++ b/src/main/java/com/example/sinitto/common/config/WebConfig.java @@ -61,7 +61,7 @@ public CorsFilter corsFilter() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); CorsConfiguration config = new CorsConfiguration(); config.setAllowCredentials(true); - config.addAllowedOriginPattern("*"); + config.addAllowedOriginPattern("https://www.sinitto.life"); config.addAllowedHeader("*"); config.addAllowedMethod("*"); config.addExposedHeader("Authorization");