mern-exercise-tracker-mongodb icon indicating copy to clipboard operation
mern-exercise-tracker-mongodb copied to clipboard

Deploy to Internet not localhost / show error [Heroku]

Open razeconix opened this issue 4 years ago • 2 comments

!--- Local machine work perfect ---!

ภาพ

!----------- Internet host ----------!

ภาพ

if I use localhost:5000/products it's will error about CROS, not success

ภาพ Any suggestion?

razeconix avatar Aug 15 '20 13:08 razeconix

this also does not work from glitch. the POST API is just wrong however cannot know which

lofung avatar Oct 29 '20 08:10 lofung

services by default does not run both a react server and an express api at start. If you want to use heroku free tier you may have to use two instances and change the http requests to the new url.

lukeh990 avatar Dec 03 '20 21:12 lukeh990