diff --git a/buildchain/vite.config.ts b/buildchain/vite.config.ts index fb4307a5..15e95408 100644 --- a/buildchain/vite.config.ts +++ b/buildchain/vite.config.ts @@ -67,7 +67,9 @@ export default defineConfig(({command}) => ({ server: { // Allow cross-origin requests -- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6 allowedHosts: true, - cors: true, + cors: { + origin: /(.local|.site|localhost)/ + }, fs: { strict: false },