Prerequisites
Environment check
Node.js version
22.8.0
Reproduction repository
https://github.com/islazh/msw-redirection-bug-repro
Reproduction steps
Steps to reproduce
- run
nvm use
- run
corepack enable
- run
pnpm install
- run
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.