I am using api which is deployed in heroku to my react app. To fix the cors error, I add proxy in package.json as
"proxy":"https://mobtech.herokuapp.com"
While calling api , i do it like this
const res = await axios.get('/api/user')
So, doing such works fine on development but not after deploying to netlify. I read official docs from netlify docs click but it doesnot lighten my mind. Can someone help me by giving example?