mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-28 11:25:25 +03:00
🐛 Fixes Authorization headers for Glances widget (#546)
This commit is contained in:
parent
730a67435e
commit
56798fbdc4
@ -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 New Issue
Block a user