I’m new to node and react but I am trying to understand how to pass data with express routers between the client and the server and I successfully got a GET to work. But every time I try to POST I get an error in node that says: Proxy error: could not proxy request /api/test from localhost:3000 to http://localhost:5000.Now I know my client is running on port 3000 and my server is running on port 5000, I have a proxy set up in my clients package.json that is basically “proxy”: “http://localhost:5000”. Can anyone help me fix this as well as explain why I can GET but not POST?Edit: spelling.
Submitted August 04, 2018 at 01:33AM by rojo_menace
No comments:
Post a Comment