diff --git a/ui/src/lib/api.ts b/ui/src/lib/api.ts index 9b61bee..01fbbdd 100644 --- a/ui/src/lib/api.ts +++ b/ui/src/lib/api.ts @@ -46,7 +46,7 @@ export class API { } public static get creds(): AxiosBasicCredentials { - const stored_auth = JSON.parse(localStorage.getItem(this.creds_key) ?? ""); + const stored_auth = JSON.parse(localStorage.getItem(this.creds_key) ?? "null"); if ( stored_auth !== null && Object.hasOwn(stored_auth, "username") && diff --git a/ui/vue.config.js b/ui/vue.config.js index 52934c3..40d7f21 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -5,7 +5,7 @@ const webpack = require("webpack"); module.exports = defineConfig({ transpileDependencies: true, devServer: { - host: "0.0.0.0", + host: "127.0.0.1", }, pages: { index: {