I want to set a cookie from my angular app in one subdomain, (app1.example.com
) and then pass the cookie to another subdomain (app2.example.com
) by doing a redirect. Is this possible? Below is how I am setting the cookie in my app1
.
document.cookie = “mycookie=myvalue; path=/; domain=example.com”