Cookie domain with 302 redirect

回眸只為那壹抹淺笑 提交于 2019-12-24 09:18:46

问题


Let's say I have two servers:

a) http://server-a.com

b) http://server-b.com

Server a has the following endpoints:

1) method: GET path: /

2) method: GET path: /do-something

When a http get request is made to endpoint 1, it responds with a header value:

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

When a request is made to endpoint 2, it responds with a 302 redirect to server b.

If a request is made to endpoint 1 and then directly after that another request is made to endpoint 2:

Should the redirected request to server b include the cookie?

来源:https://stackoverflow.com/questions/48433221/cookie-domain-with-302-redirect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!