From 5196685ea68168f9153eba850a24ea5f60c31fa4 Mon Sep 17 00:00:00 2001 From: AlexeerCT Date: Fri, 24 Apr 2026 16:20:49 -0500 Subject: [PATCH] Add localhost and 127.0.0.1 to allowedHosts in Vite config for local development --- frontend/vite.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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: {