Add localhost and 127.0.0.1 to allowedHosts in Vite config for local development
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user