diff --git a/src/utils/vite-dev-server.js b/src/utils/vite-dev-server.js index 6127b40a..18077e2a 100644 --- a/src/utils/vite-dev-server.js +++ b/src/utils/vite-dev-server.js @@ -2,7 +2,7 @@ module.exports = { getProxyOptions({ port }) { return { '^/(app|login|api|assets|files)': { - target: `http://localhost:${port}`, + target: `http://127.0.0.1:${port}`, ws: true, router: function (req) { const site_name = req.headers.host.split(':')[0]