Skip to content

[core] deeper sanitization of sensitive headers during cross-origin redirects #38545

@xirzec

Description

@xirzec

Currently we only remove the authorization header here:

request.headers.delete("Authorization");

Looking around in the repo I found a few other headers we might want to clean up like

Ocp-Apim-Subscription-Key
subscription-key
api-key
x-api-key

I'm not sure if any services are currently relying on redirect behavior in a way that would stop working with simply removing all of them.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions