mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
🐛 Fixes Authorization headers for Glances widget (#546)
This commit is contained in:
parent
730a67435e
commit
56798fbdc4
1 changed files with 1 additions and 2 deletions
|
|
@ -14,8 +14,7 @@ export default {
|
||||||
credentials() {
|
credentials() {
|
||||||
if (this.options.username && this.options.password) {
|
if (this.options.username && this.options.password) {
|
||||||
const stringifiedUser = `${this.options.username}:${this.options.password}`;
|
const stringifiedUser = `${this.options.username}:${this.options.password}`;
|
||||||
const headers = { Authorization: `Basic ${window.btoa(stringifiedUser)}` };
|
return { Authorization: `Basic ${window.btoa(stringifiedUser)}` };
|
||||||
return { headers };
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue