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.[1] As suggested by a glitch employee [0].
However, the proxy I have made doesn’t seem to work. Surely this is such a common setup somebody has done this before?
[0] What's the port range users have at Glitch?
[1] https://glitch.com/edit/#!/stripe-react-elements-express