Scrapy leaks the authorization header on same-domain but cross-origin redirects
Scrapy kept the Authorization header when a redirect changed only the scheme or port on the same domain, although it should have dropped it. An attacker who can intercept traffic could obtain the header value.
scrapy/scrapy
Medium