First Method:
Set up react’s package.json
that proxies non text/html
requests through to an alternative back end.
Example post:
https://www.twilio.com/blog/react-app-with-node-js-server-proxy
Second Method:
Add cors(cross-origin resource sharing) to nodejs
https://www.npmjs.com/package/cors
Example blog: