From a6069836327b9b7f26fd800796e3b886f1aebab9 Mon Sep 17 00:00:00 2001 From: almazlar Date: Sat, 21 Feb 2026 00:27:43 +0300 Subject: [PATCH] feat: Add `https://todo.almazlar.com` to allowed CORS origins. --- backend/src/main/java/com/todo/backend/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/com/todo/backend/config/WebConfig.java b/backend/src/main/java/com/todo/backend/config/WebConfig.java index 43a2e45..9ab638b 100644 --- a/backend/src/main/java/com/todo/backend/config/WebConfig.java +++ b/backend/src/main/java/com/todo/backend/config/WebConfig.java @@ -11,7 +11,7 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("http://localhost:5173", "http://localhost:3000", "http://localhost:8081", - "http://localhost:80") // Typical Vite/React/Docker ports + "http://localhost:80", "https://todo.almazlar.com") // Typical Vite/React/Docker ports .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") .allowedHeaders("*") .allowCredentials(true);