Add localhost and 127.0.0.1 to allowedHosts in Vite config for local development

This commit is contained in:
2026-04-24 16:20:49 -05:00
parent 797b1fcbdb
commit 5196685ea6

View File

@@ -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: {