Cross-Domain Cookies

后端 未结 15 2556
抹茶落季
抹茶落季 2020-11-21 21:56

I have two webapps WebApp1 and WebApp2 in two different domains.

  1. I am setting a cookie in WebApp1 in the HttpResponse.
  2. How to read the same cookie fro
15条回答
  •  闹比i
    闹比i (楼主)
    2020-11-21 22:49

    You cannot share cookies across domains. You can however allow all subdomains to have access. To allow all subdomains of example.com to have access, set the domain to .example.com.

    It's not possible giving otherexample.com access to example.com's cookies though.

提交回复
热议问题