From 2613fbead4571023fb7f07a5974926b30cabb1f4 Mon Sep 17 00:00:00 2001 From: stroblme Date: Sun, 16 Aug 2026 16:46:35 +0200 Subject: [PATCH] Allow the standalone Vite origin through CORS `make dev-frontend` serves the SPA from localhost:5173 and talks to the stack's backend, which refused it. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01H7LwYgJfpkbLCTeiAf8U4A --- docker/compose.local.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/compose.local.yml b/docker/compose.local.yml index 3f62f26..08d0c53 100644 --- a/docker/compose.local.yml +++ b/docker/compose.local.yml @@ -29,7 +29,9 @@ services: environment: - ENVIRONMENT=local - FRONTEND_HOST=http://app.${DOMAIN:-localhost} - - BACKEND_CORS_ORIGINS=http://${DOMAIN:-localhost},http://app.${DOMAIN:-localhost} + # Last entry: the standalone Vite dev server (`make dev-frontend`), which + # talks to this backend rather than running one of its own. + - BACKEND_CORS_ORIGINS=http://${DOMAIN:-localhost},http://app.${DOMAIN:-localhost},http://localhost:5173 prestart: environment: