From 7f73e8f03f1a7ed895e26c49fc1bfe4f3edc556d Mon Sep 17 00:00:00 2001 From: "Bernt (LandveX AI)" Date: Sun, 12 Jul 2026 18:06:37 +0000 Subject: [PATCH] fix(dashboard): Fix JavaScript syntax errors in token handling - Fixed Authorization header: '***' -> 'Bearer ' + token - Fixed WebSocket URL: *** -> - Dashboard should now load data correctly --- web/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/dashboard.html b/web/dashboard.html index e3d9b0b2d..ead19379d 100644 --- a/web/dashboard.html +++ b/web/dashboard.html @@ -416,7 +416,7 @@ try { const token = getToken(); const res = await fetch('/api/v1/analytics/dashboard', { - headers: { 'Authorization': '***' + token } + headers: { 'Authorization': 'Bearer ' + token } }); const data = await res.json(); @@ -531,7 +531,7 @@ function connectWebSocket() { const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; const token = getToken(); - ws = new WebSocket(`${protocol}//${window.location.host}/ws?tenant_id=default&token=***`); + ws = new WebSocket(`${protocol}//${window.location.host}/ws?tenant_id=default&token=${token}`); ws.onopen = () => { document.getElementById('live-indicator').style.display = 'inline-flex';