If it do this: axios.post('http://localhost:3000/myrequest') the call goes through. However, if I do axios.post('/myrequest') it doesn't work (this call does work when called from the client side, though)I'm creating an isomorphic app so the axios call needs to work both on the server and the client side.I keep getting a 502 Bad Gateway error when I don't include the http://localhost:3000Any thoughts on how I can fix this?
Submitted July 30, 2017 at 03:49AM by alwayssans
No comments:
Post a Comment