浏览器拒绝具有域集的302重定向上的Cookie

时间:2020-01-29 08:23:05

标签: google-chrome http firefox cookies http-headers

当我的服务器(domain = https://local1.ghanta.com)收到GET请求时,它向https://app.local2.ghanta.com返回302并设置Cookie:

domain=local2.ghanta.com
httpOnly: true
path: /
secure: true
value: xyz

我在Firefox和Chrome中都尝试过。他们正在拒绝此Cookie,并且不会在随后的请求中将其发送给https://app.local2.ghanta.com

如何使浏览器接受重定向上的cookie?我猜我可以使用Cookie的域字段-将其设置为

ghanta.com (which is the common suffix of local1.ghanta.com & app.local2.ghanta.com) 

app.local2.ghanta.com. 

这是旧版应用程序。因此,我不确定进行此更改的影响。

感谢阅读。

0 个答案:

没有答案