fix: add ORIGIN environment variable for SvelteKit to prevent internal IP/port usage

This commit is contained in:
2026-05-12 11:17:43 -05:00
parent 2436a4d563
commit d73c0dca83
2 changed files with 4 additions and 0 deletions

View File

@@ -142,6 +142,8 @@ services:
# CORS / CSRF — trusted origins para svelte.config.js
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:5173,http://localhost:3001}
- TRUSTED_ORIGINS=${TRUSTED_ORIGINS:-}
# SvelteKit ORIGIN — evita que request.url.origin use la IP/puerto interno del contenedor
- ORIGIN=${ORIGIN:-http://localhost:5173}
ports:
- "5173:5173"
depends_on: