diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 5356c0b1..5346ce8c 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -42,6 +42,12 @@ export default defineConfig({ host: true, // escucha en 0.0.0.0 allowedHosts: [ 'anexo76-dev.aduanasoft.com', + // Requeridos para dev local, healthcheck del contenedor y E2E (Playwright + // con --network host apunta a 127.0.0.1:5173). Al definir allowedHosts, + // Vite 5.1+ reemplaza el default ['.localhost'] y bloquea todo lo que no + // esté aquí, devolviendo 403 "Blocked request". + '127.0.0.1', + 'localhost', // 'otro-host.com' si necesitas más ], proxy: {