Skip to content

Commit

Permalink
refactor: Allow cross-origin requests -- GHSA-vg6x-rcgg-rjx6
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 23, 2025
1 parent 22fdbfd commit 8aad0f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion buildchain/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8aad0f0

Please sign in to comment.