Skip to content

HttpClient should drop authorization headers when following redirects to different hosts by default #47246

Closed
@Hixie

Description

@Hixie

I can't find evidence in the standards to support this, but it seems to be standard practice to drop Authorization headers when handling a cross-origin redirect, to avoid leaking credentials when the host has been tricked into sending redirects somehow.

See e.g.
https://stackoverflow.com/questions/17092259/should-authorization-be-kept-when-redirection-is-handled

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-io

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions