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 a834b8d1..ef6d73b4 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)