I am setting my cookie as follows:
document.cookie =`${name}=${value};expires=${expires.toUTCString()};path=/`;
and it works.
However recently I got a request that other corss subdomain access to the cookie is not allowed and that is why I am adding the domain as a path and when I set it as follows:
document.cookie =`${name}=${value};expires=${expires.toUTCString()};path=/`+ServiceUrls.prototype.getDomainUrl();
I cannot see it saved as a cookie. Is there anything wrong with what I am doing?