Node version: Any
Npm version: Any
OS and version: Any
typed-rest-client version: Latest
Issue Description
Work was done to prevent the authentication header being set on redirects that use credential handlers (https://github.com/microsoft/typed-rest-client/pull/207) but this header should really be prevented on all redirect requests (or an option added to prevent it from being added)
An example use case is authentication to the Github API
if (token !== "") {
headers["Authorization"] = `token ${token}`
}
This request does not use a credential handler
Expected behaviour
Authentication header should no be sent on any redirects
Actual behaviour
Authentication header is only stripped when using credential handlers
Environment
Node version: Any Npm version: Any OS and version: Any typed-rest-client version: Latest
Issue Description
Work was done to prevent the authentication header being set on redirects that use credential handlers (https://github.com/microsoft/typed-rest-client/pull/207) but this header should really be prevented on all redirect requests (or an option added to prevent it from being added)
An example use case is authentication to the Github API
This request does not use a credential handler
Expected behaviour
Authentication header should no be sent on any redirects
Actual behaviour
Authentication header is only stripped when using credential handlers