Cookies set in frontend (Vercel) are lost after refresh the page when backend is deployed on Render #6262
Unanswered
mohitSr1021
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
# Cookies Set in Frontend (Vercel) are Lost After Page Refresh When Backend is Deployed on Render
Issue Description:
I am experiencing an issue where cookies set in the frontend (deployed on Vercel) are lost upon refreshing the page. The backend is deployed on Render, and it seems that the cookies are not persisting correctly. I suspect this might be related to how the cookies are being configured in the backend.
Backend Configuration:
.env File:
index.js or app.js Code:
Auth Controller - Cookies Options:
Notes:
I am new to backend development and currently learning the basics, so.
Request for Help:
Any guidance, suggestions, or resources for debugging and resolving this issue would be greatly appreciated. I would also love to learn from you about the best practices for handling cookies in this setup 0_0.
Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions