Closed rohan-paul closed 5 years ago
In my .client/package.json I have the following
"proxy": { "/": { "target": "http://localhost:5000/", "secure": false }
But in my app.js axios requst is not working if I just put like below
axios.get('/')
I have to put the full url - axios.get('http://localhost:5000/')
axios.get('http://localhost:5000/')
I'm facing the same issue. Found any solution for this?
Resolved it by doing the below in server.js
server.js
app.use('/api', car);
And in ..src/App.js the below
axios.get('/api')
Oh yeah! I figured that too!
In my .client/package.json I have the following
But in my app.js axios requst is not working if I just put like below
axios.get('/')
I have to put the full url -
axios.get('http://localhost:5000/')