From 5c2b73c88a197b8ddc9f27dd227cb02c6175d145 Mon Sep 17 00:00:00 2001 From: ay-eonii Date: Wed, 23 Oct 2024 14:55:01 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=20cors=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/mouda/backend/common/config/CorsConfig.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/mouda/backend/common/config/CorsConfig.java b/backend/src/main/java/mouda/backend/common/config/CorsConfig.java index a834b8d14..ef6d73b4c 100644 --- a/backend/src/main/java/mouda/backend/common/config/CorsConfig.java +++ b/backend/src/main/java/mouda/backend/common/config/CorsConfig.java @@ -10,8 +10,12 @@ public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:8081", "https://dev.mouda.site", "https://mouda.site", - "https://appleid.apple.com") + .allowedOrigins("http://localhost:8081", + "https://dev.mouda.site", + "https://appleid.apple.com", + "https://test.mouda.site", "http://test.mouda.site", + "https://mouda.site", "http://mouda.site" + ) .allowedMethods("GET", "POST", "PATCH", "DELETE", "OPTIONS") .allowedHeaders("Authorization", "Content-Type") .allowCredentials(true)