diff --git a/buildchain/vite.config.ts b/buildchain/vite.config.ts index 41abd006a..75b5204fe 100644 --- a/buildchain/vite.config.ts +++ b/buildchain/vite.config.ts @@ -63,10 +63,15 @@ export default defineConfig(({command}) => ({ preserveSymlinks: true, }, server: { - cors: true, // Allow cross-origin requests -- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6 + // Allow cross-origin requests -- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6 + allowedHosts: true, + cors: true, fs: { strict: false }, + headers: { + "Access-Control-Allow-Private-Network": "true", + }, host: '0.0.0.0', origin: 'http://localhost:' + process.env.DEV_PORT, port: parseInt(process.env.DEV_PORT),