You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For react-ts template OPTIONS (HTTP method) request doesn't get forwarded to the proxy back-end port, always receives a 204 No Content response.
Is it possible that options call isn't implemented.
Have tried going through node-http-proxy , couldn't find any way to specify the supported HTTP methods.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
For react-ts template OPTIONS (HTTP method) request doesn't get forwarded to the proxy back-end port, always receives a
204 No Content
response.Is it possible that options call isn't implemented.
Have tried going through node-http-proxy , couldn't find any way to specify the supported HTTP methods.
Reproduction
https://stackblitz.com/edit/vitejs-vite-ez3e1e?file=vite.config.ts,main.js&terminal=dev
Steps to reproduce
npm create vite --template react-ts
configure the server proxy in vite.config.ts
System Info
Windows 11, Vite 5.2.0, occurs in both Chrome and Firefox.
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: