DEV Community


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

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 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('').then(d => d.json()).then(d => console.log(d))
Enter fullscreen mode Exit fullscreen mode