Skip to content

Commit

Permalink
fix: authentication header (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
turban authored Jan 30, 2020
1 parent 57cb9fb commit 11b646d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const PluginContainer = () => {
}

if (username && password) {
config.context = { auth: `${username}:${password}` };
config.headers = {
Authorization: 'Basic ' + btoa(`${username}:${password}`),
};
}

config.schemas = union(config.schemas, [
Expand Down

0 comments on commit 11b646d

Please sign in to comment.