Get cookie by subdomain wise in react js using universal-cookie
I am using universal-cookie in my React JS project to store a token. I am setting cookies for both the domain and subdomain. My domain is testdomain.com and my subdomain is demo.subdomain.com. When I set the cookie for the domain and try to access it from the subdomain, I am getting the domain cookie instead