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';