From a88cc451e418219a26bbd697fb70859144507224 Mon Sep 17 00:00:00 2001 From: suhyeon7497 Date: Thu, 14 Nov 2024 20:07:07 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20cors=20=EC=84=A4=EC=A0=953?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/team7/inplace/security/config/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/team7/inplace/security/config/CorsConfig.java b/src/main/java/team7/inplace/security/config/CorsConfig.java index 91c296b2..5d4d1a37 100644 --- a/src/main/java/team7/inplace/security/config/CorsConfig.java +++ b/src/main/java/team7/inplace/security/config/CorsConfig.java @@ -15,7 +15,7 @@ public CorsFilter corsFilter() { var source = new UrlBasedCorsConfigurationSource(); var config = new CorsConfiguration(); config.setAllowCredentials(true); - config.addAllowedOrigin("https://www.inplace.my"); + config.addAllowedOriginPattern("https://www.inplace.my"); config.addAllowedOriginPattern("https://api.inplace.my"); config.addAllowedHeader("Origin"); config.addAllowedHeader("Accept");