Share a cookie between two websites

前端 未结 7 651
梦谈多话
梦谈多话 2020-11-27 04:44

I have built a website (A) which logs in to and retrieves customer data from a separate web service.

The organisation that owns (A) also has a website (B) which has

相关标签:
7条回答
  • 2020-11-27 05:46

    Cookies are only accessible to a single domain that they are set to.

    I believe if you are using two sub-domains on the same domain it would be possible to share the cookies, however the browser doesn't send cookies set on one domain to any others.

    Edit: You also want to avoid storing large amounts of data in a cookie. Is there perhaps the chance you could create an api that site B could query with javascript?

    0 讨论(0)
提交回复
热议问题