I have been banging my head against a very simple problem.
I am trying to get a react dev server working with expressjs so that I have a playground with a frontend and backend.
Glitch only exposes one port, by default 3000. This rules out making XHR requests to a different port from the frontend to the backend. The solution is to run create-react-app on port 8000 and setup a proxy from the express server to the frontend. As suggested by a glitch employee .
However, the proxy I have made doesn’t seem to work. Surely this is such a common setup somebody has done this before?