具有302重定向的Cookie域

时间:2018-01-24 23:11:07

标签: redirect cookies cross-domain setcookie http-status-code-302

假设我有两台服务器:

a)http://server-a.com

b)http://server-b.com

Server a具有以下端点:

1)方法:GET路径:/

2)方法:GET路径:/do-something

当向endpoint 1发出http get请求时,它会以标头值响应:

Set-Cookie: cookie:0834u50lksdjfbuttonmashlkjdsf; Path=/; Domain=.server-a.com; HTTPOnly

当向endpoint 2发出请求时,它会回复302重定向到server b

如果向endpoint 1发出请求,然后直接向endpoint 2发出另一个请求:

重定向到server b的请求是否应包含Cookie?

0 个答案:

没有答案
相关问题