Closed islazh closed 2 months ago
Hi, @islazh. Thanks for reporting this.
Could you please check how is your issue different from #2177? I know you are not using Axios, but I suspect the root cause for this behavior is the same. Thanks.
Closed in favor of https://github.com/mswjs/interceptors/issues/626. Please follow the updates there.
Prerequisites
Environment check
msw
versionNode.js version
22.8.0
Reproduction repository
https://github.com/islazh/msw-redirection-bug-repro
Reproduction steps
Steps to reproduce
nvm use
corepack enable
pnpm install
pnpm test
Current behavior
The requests do not automatically "follow" the redirect and a 302 is returned in the response with Location header. The test fails as a result.
Expected behavior
The requests should "follow" the redirect and progress to /redirected. The response status should be 200 with whatever HTML is returned.