Getting “TypeError: failed to fetch” when the request hasn't actually failed

前端 未结 5 1747
予麋鹿
予麋鹿 2020-12-01 09:05

I\'m using fetch API within my React app. The application was deployed on a server and was working perfectly. I tested it multiple times. But, suddenly the application stopp

5条回答
  •  情歌与酒
    2020-12-01 09:55

    I know it's a relative old post but, I would like to share what worked for me: I've simply input "http://" before "localhost" in the url. Hope it helps somebody.

提交回复
热议问题