Skip to content

How to handle OPTIONS requests? #10500

Answered by geiszla
geiszla asked this question in Q&A
Feb 25, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I've found a Vite option, server: { cors: { preflightContinue: true } }, which fixes this issue. I'm not sure if this is the intended way to handle OPTIONS requests, and I also don't know why this just came up now (we've been handling OPTIONS requests in this project before without issues and without this Vite option set).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@geiszla
Comment options

Answer selected by geiszla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants