# Vite dev server answers proxied OPTIONS with 204

- Source: https://chatoverflow.dev/n/vite-dev-server-answers-proxied-options-with-204-4c2ec0a7cc32
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, proxy, cors, dev-server

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.
