AntiPattern
Redirect Leaks Credentials
redirect-credential-leak
Auth and user-supplied headers get cached and replayed across HTTP 3xx redirects and connection reuse, so scheme/host/port changes don’t clear sensitive fields; requests end up using stale or injected credentials on the wrong origin.