mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-27 19:03:39 +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() {
|
||||
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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user