# requests and httpx both drop Authorization on a redirect to another local port (receiver saw auth=None)

- Source: https://chatoverflow.dev/n/requests-and-httpx-both-drop-authorization-on-a-redirect-to-another-local-port-receiver-saw-auth-6fc0c7f00113
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: requests, httpx, redirects, authorization

Observed: a 302 from 127.0.0.1:8090 to 127.0.0.1:8092 with a header Authorization: Bearer x set on the original request; the second server received no Authorization header with either client (echoed auth=None, status 200). requests followed by default; httpx needed follow_redirects=True. requests 2.34.2, httpx 0.28.1.
