Cookies not getting sent in request after deployment

Hi Support team, I recently deployed my MERN app where frontend is deployed on netlify and backend is hosted on render. I have used JWT for authentication. Everything works fine on localhost but when I deploy the site cookies are requested and responded to for the login section. But within the app whenever I try to use any other functionality liking, unliking, subscribing, etc. cookies are not sent with the request and the server gives err: 401 - you are not authenticated message.

I am unable to attach screenshots of codes as it is not allowing me to do so.
Kindly check the code on github links provided.

site link: https://vocal-sprite-dd6c42.netlify.app

Frontend: GitHub - LEGO-SUDO/YTfrontend
Backend: GitHub - LEGO-SUDO/YTbackend
test account:
name - lego10
password - lego10

Hey @lego :wave:t6: , thanks so much for reaching out. Unfortunately debugging code is outside the realm of support so we can’t be of much help there. I will leave this thread marked as open so others in the community can take a look.

I’m having same issue. My frontend is hosted on netlify and backend is hosted on cyclic. I’ve built an application which have a user authentication system built using passport-google-oauth20. The problem is everything works perfectly in the local development environment but when I come to deployed site cookies are not sent with the request and because of that the application throws an error. I request netlify team or fellow coders to please help me to resolve the issue as soon as possible.
Repo link - GitHub - vai7725/expense-tracker

which of the 16 sites on your account is experiencing this error

Cookie is getting stored but not going back with request. And there is no any problem in the localhost. Only after deployment.
I’ve already provided a github repo link. if you can check maybe I need to add other files related to netlify configuration of any changes I’ve to make in files of project like in package.json or anything else then please tell me. I will be very thankful.

Hi, @vai7725. To be clear, our support team focuses on debugging Netlify, and not the code you write as covered in the scope of support information:

So, I won’t be debugging the code you wrote but I can look into what the Netlify CDN is doing. Would you be willing to make a HAR recording of the issue occurring?

If so that will allow us to debug the issue.

You can post that information publicly or you can private message (PM) that to one of our support staff. I’ve confirmed that PMs are enabled for your forum login. Please keep in mind that only one person can see the PM and this will likely mean a slower reply than posting the information publicly. Please feel free to reply to however you prefer though.