Hello everyone,

I'm working on a website that runs on 2 different domains and I noticed that
whenever I try to set a cookie I noticed that I have to set the domain before changing the value within the cookie or else the browser won't allow the modification

I have 2 questions:
1- What's causing that?
2- How can I fix this issue? because it's pretty annoying to have to set the domain every time I need to change the value within the cookie.

Thanks in advance guys