Skip to content

Commit

Permalink
🐛 Fixes Authorization headers for Glances widget (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Mar 27, 2022
1 parent 730a674 commit 56798fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mixins/GlancesMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default {
credentials() {
if (this.options.username && this.options.password) {
const stringifiedUser = `${this.options.username}:${this.options.password}`;
const headers = { Authorization: `Basic ${window.btoa(stringifiedUser)}` };
return { headers };
return { Authorization: `Basic ${window.btoa(stringifiedUser)}` };
}
return null;
},
Expand Down

0 comments on commit 56798fb

Please sign in to comment.