fietensen / wafflemap

Educational Repository showcasing a Fullstack application including CI/CD pipeline
MIT License
0 stars 0 forks source link

Development Frontend Proxying #4

Closed fietensen closed 3 months ago

fietensen commented 3 months ago

When executing npm run dev api calls are not available since the application is not yet bundled. If we add the "proxy" property to the package.json, we can proxy api calls to the backend that is running simultaneously.

fietensen commented 3 months ago

CORS will probably not allow this, we should also allow CORS for vite (localhost:5173) when on development profile

fietensen commented 3 months ago

To do this, though, we have to add an endpoint first. Otherwise this is completely redundant