Requests via fetch()
always follow redirects, regardless of the redirect
property, but do not persist cookies.
This breaks any requests which use both cookies and redirects.
This could be fixed by either supporting the fetch api redirect
property (in which case the user could specify manual
, and pass the cookies across themselves for redirects), or by passing across the set-cookie
header from the previous response when automatically following redirects.