Commit 6073e8c
security(web): disable CORS on Vite dev server
Restrict CORS on the development server to prevent malicious websites
from reading source files. This addresses the esbuild CVE pattern where
`Access-Control-Allow-Origin: *` allows any site to fetch dev server files.
Note: This only affects `vite dev`, not production builds or deployments.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 47f3e96 commit 6073e8c
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
0 commit comments