How do you get a react app to communicate properly with a server that is on the same ec2 instance?
I have built a very small SERN app that was making requests to the back end api just fine when I was testing it on my computer but when deployed to ec2 the front and back end were no longer able to communicate with one another. Here is some of my server side code: