Skip to content

Support following fetch redirect responses #626

@kettanaito

Description

@kettanaito

There are instances where redirect responses to fetch requests aren't being followed:

Caution

Before fixing this, we need to write compliance tests for different request modules in accordance to how they follow or don't follow redirects. Note that not all request modules may have redirect following built-in. For example, I believe the http module doesn't do that, thus the existence of designated third-party modules just for that functionality.

Roadmap

  1. Add failing compliance tests for following redirect responses (can start from fetch). A good start: test: add mock redirect response tests for "axios" and "follow-redirects" #581
  2. Analyze existing solutions to learn how they implement redirect response following. Use Undici as an example, I believe it has that built-in.
  3. Implement the redirect following.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions