I wrote half of a MERN app last year and haven't touched it largely due to depression. I feel better now and trying to figure out my own code as I'm dumb and didn't write many comments.I used to run react app on my localhost:3333 and then make an API call to my express app with fetch. For example to 35.123.23.45/login and then it would return a json response and everything was fine. Express app is at EC2 Amazon and I start it with npm start and it starts on localhost:3000. HTTP requests were working fine. Now I can't do that. 35.123.23.45/login refused to connect. And 35.123.23.45:3000 runs fine, it shows my old react bundle. I also use cors plugin at express and use same-origin credentials, it used to work fine before
Submitted November 04, 2019 at 02:46AM by notpreposterous
No comments:
Post a Comment