diff --git a/pkg/ui/workspaces/db-console/src/redux/alerts.ts b/pkg/ui/workspaces/db-console/src/redux/alerts.ts index 9a8102d64f1f..44e8a5558dad 100644 --- a/pkg/ui/workspaces/db-console/src/redux/alerts.ts +++ b/pkg/ui/workspaces/db-console/src/redux/alerts.ts @@ -653,15 +653,19 @@ export function alertDataSync(store: Store) { // Always refresh health. dispatch(refreshHealth()); + const { Insecure } = getDataFromServer(); // We should not send out requests to the endpoints below if // the user has not successfully logged in since the requests // will always return with a 401 error. - if ( - !state.login || - !state.login.loggedInUser || - state.login.loggedInUser == `` - ) { - return; + // Insecure mode is an exception, where login state is irrelevant. + if (!Insecure) { + if ( + !state.login || + !state.login.loggedInUser || + state.login.loggedInUser == `` + ) { + return; + } } // Load persistent settings which have not yet been loaded.