When working in a React application with API calls, handling redirects in the middle of the request chain can be tricky.
scenario
When you make an API call from your frontend code to your server, and the server then makes another request that returns a redirect.