假设我有两台服务器:
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?