From 42af7fa8ae3befedc7d504a301a4b8d6ea9c3c27 Mon Sep 17 00:00:00 2001 From: leegwichan Date: Mon, 6 Jan 2025 01:56:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20allowedOrigins=20=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20#459?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/ddangkong/config/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/ddangkong/config/CorsConfig.java b/backend/src/main/java/ddangkong/config/CorsConfig.java index d34f9e33..5c53d40b 100644 --- a/backend/src/main/java/ddangkong/config/CorsConfig.java +++ b/backend/src/main/java/ddangkong/config/CorsConfig.java @@ -20,7 +20,7 @@ public CorsConfig(CorsProperties corsProperties) { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOriginPatterns(corsProperties.getOrigins()) + .allowedOrigins(corsProperties.getOrigins()) .allowedMethods( HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PATCH.name(), HttpMethod.DELETE.name() )