Closed dengshaochun closed 5 months ago
Hi @dengshaochun, this is intended behavior. Requests will not forward potentially sensitive auth tokens to redirected hosts. This is to prevent leaking auth information to unintended endpoints. The best course of action in this case is to fix the URI provided to Requests to prevent redirection.
auth headers lost when requests process redirected requests
Expected Result
request headers
Response Status Code: 307
redirected headers
Actual Result
redirected headers contains
Authorization
Reproduction Steps
System Information