ScottHamper / Cookies

JavaScript Client-Side Cookie Manipulation Library
The Unlicense
1.77k stars 170 forks source link

Share cookie data between two different domain #66

Closed cullsin closed 7 years ago

cullsin commented 7 years ago

Hi,

I have a question about sharing data between two different domains. Does it possible through cookies ?

Can you suggest me on this.

Raja K

ScottHamper commented 7 years ago

Nope, not possible due to the same-origin policy.

You can have two different _sub-_domains access a cookie that was set for their same parent domain, but you cannot have two completely different domains sharing cookies with one another.