Commit 940d60f
committed
fix(webapp): stop the dev server sending duplicate CORS headers
In local development, Vite's dev-server CORS middleware reflected the
request Origin on every Express response, on top of the app's own CORS
handling. The two layers produced a duplicated Access-Control-Allow-Origin
header, which browsers reject, breaking cross-origin API calls from a
separate frontend in dev. Disabling Vite's dev CORS lets the app be the
single source of CORS headers. Dev-only; production is unaffected.1 parent f26770b commit 940d60f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments