DEV Community

Cover image for Cookies in Depth using Javascript and NodeJs

Cookies in Depth using Javascript and NodeJs

Royal Jain on March 22, 2024

What are Cookies? Cookies are small pieces of data stored on a user's web browser. They are used to remember stateful information (such ...
Collapse
 
kaushal01 profile image
Kaushal

Appreciate the post. But i have a question i am facing an issue where my backend is on a different url and frontend is on a difrnt url and on deployed site when i try to set the cookie from server the browser blocks it and wont let me set it
Will you help me and post a solution for that so i can try and see ✌️✌️✌️

Collapse
 
royaljain profile image
Royal Jain CodeParrot

Are you getting the cors error?

dev.to/codeparrot/cors-error-expla...

If not, can you share some info on the error