You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Software like Postman (if not disabling the cookie jar in the settings) and browser redirects save cookies when they hit a redirect which has a set-cookie header and set them on requests following that redirect by adding a cookie header.
Should Node.js fetch do this too?
When I request the http://localhost:8080/redirect from this code with Postman, it logs the cookie header and in the Postman console you see the cookie was added to the following request. The native fetch that happens in the code doesn't pass the cookie to the /redirect_to url.
We likely need to wait for something along the lines of whatwg/fetch#1384. Maybe it'd be better as a wintercg issue as this is more pertinent to non-browser environments.
Software like Postman (if not disabling the cookie jar in the settings) and browser redirects save cookies when they hit a redirect which has a
set-cookie
header and set them on requests following that redirect by adding acookie
header.Should Node.js fetch do this too?
When I request the
http://localhost:8080/redirect
from this code with Postman, it logs thecookie
header and in the Postman console you see the cookie was added to the following request. The native fetch that happens in the code doesn't pass the cookie to the/redirect_to
url.Here is the minimal reproduction repository:
https://github.com/dsine-de/fetch-redirect-cookies
The text was updated successfully, but these errors were encountered: