I hosted my client side on Netlify and backend on Heroku. Everything is working fine locally, but as soon as I deployed the changes live it stopped working.
Locally in my client side, I have added proxy in
package.jsonlike"proxy": "localhost:5000"(Server was running on 5000 port locally) and it is working and I am able to store cookies in Chrome.After deploying to Netlify, I just removed the proxy, the user is getting saved successfully in MongoDB which is live but cookies are not getting saved.
I am not sure what I'm doing wrong, since everything is working in local.