Answer the question
In order to leave comments, you need to log in
How to solve proxy error in React when working with Node?
From time to time, when saving a project, this error occurs (this example actually happens with different references):
Proxy error: Could not proxy request /api/games/handle/:handle from localhost:3000 to http://127.0.0.1:5000.
- client
-- package.json
- server
- package.json
"proxy": {
"/api": {
"target": "https://127.0.0.1:5000",
"secure": false
}
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question