DEV Community

loading...

Discussion on: create-react-app and Express, together on Glitch

Collapse
aceslowman profile image
Austin Lee Slominski

For some reason this proxy won't work for me, webpack-dev-server is starting up and working without issues, but sending a GET request to https://my-glitch-app.glitch.me/api/ping results in an error Cannot GET /api/ping. There seems to be something going on with sockjs as well, as webpack-dev-server is having issues with live-reloading.

Is there any reason why, with the configuration you've given, this fetch wouldn't work?:

fetch('https://my-app-name.glitch.me/api/ping').then(d => d.json()).then(d => console.log(d))
Enter fullscreen mode Exit fullscreen mode