Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headers data passed in from client app gets removed in function getAuthorizationHeader #6

Open
chongwahng opened this issue Apr 22, 2022 · 5 comments

Comments

@chongwahng
Copy link

Issue found at line 35 in destination.js of function "getAuthorizationHeader". This line removes the entire "headers" data passed in from client app and replaced it with auth token retrieved from destination.

function getAuthorizationHeader(_config, cfDestinationInfo) {
return new Promise((resolve, reject) => {
var error;
var config = Object.assign({}, _config);
//config.headers = {} ***** DEFECT

@chongwahng
Copy link
Author

Shall I fork a new project and send in the changes with new pull request?

@gregorwolf
Copy link
Collaborator

Yes, please go ahead with a for and PR.

@chongwahng
Copy link
Author

Just notice the change was already applied 4 months ago in your project file destination.js

"config.headers = {}" has been changed to "config.headers = config.headers || {};", however this change has not been officially released to npm registry yet.

@lniecap
Copy link

lniecap commented Jun 14, 2022

Is the fix planned to be officially released any time soon? There's still a version in the npm registry with the defect.

@gregorwolf
Copy link
Collaborator

Hi @raeijpe would you be able to take care of this issue and PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants