Reactjs cient not receiving cookies from express server
I’m running my project on different servers, backend on render and frontend on vercel. However I’m only running into this error on deployment, meaning that the cookie is either not being set properly on the client side or not being retrieved correctly.
‘Request failed with status code 405’, name: ‘AxiosError’, code: ‘ERR_BAD_REQUEST’ react error on vercel
I deployed my project on vercel, and I get this error in the console at the login page.
React error on vercel – Failed to load resource: the server responded with a status of 404 ()
I used MERN stack for this project. I deployed the backend to render and i used the “proxy” in the vite.config for the react to serve up the files in the frontend, and it works in development. But when I deploy to vercel, I get this error.