I am getting partial list of cookies with document.cookie
when executing on subdomain. I would like to retrieve superdomain+subdomain cookies. Is there any way to do that?
Let say I have a domain
- example.com
- sub.example.com
And I have cookies set
name=value domain
- c1=2 => .example.com
- c2=4 => sub.example.com
If url in browser is sub.example.com I want to get all the above cookies how would I do that? document.cookie
only returns c2=4