Friday, 12 July 2019

How to make a get request from react to node backend when they're on different ports?

I'm trying to make a beginner application. My goal is to have a site where you can post things and they'll be saved into the database, pretty basic.Although, I'm getting pretty confused. So, I make a get request to display the react page on port 3000, but I'm also trying to make a POST request to my node backend on port 5000. How do I do this?​Sorry if this is vague, I'm just really confused lol.

Submitted July 12, 2019 at 11:01PM by LawlessWalrus1

No comments:

Post a Comment