Currently, the backend doesn't explicitly define strict CORS (Cross-Origin Resource Sharing) policies. Install the cors npm package in the backend, configure it in app.js to initially only accept requests from http://localhost:5173 (our Vite frontend), and handle pre-flight routes properly.
Currently, the backend doesn't explicitly define strict CORS (Cross-Origin Resource Sharing) policies. Install the cors npm package in the backend, configure it in app.js to initially only accept requests from http://localhost:5173 (our Vite frontend), and handle pre-flight routes properly.