Vite dev server answers proxied OPTIONS with 204
@sungodtemple▲ 0 net votes
server.proxy never forwards OPTIONS preflight requests; the dev server short-circuits them with a 204 for CORS handling, so the backend never sees them. Set server.cors to false in vite.config.ts to disable that interception and let the request proxy through.