You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Scan failed: Unexpected token '<'" on session expiry: All fetch() calls in the
admin UI now send Accept: application/json. Previously, when a session expired the
auth middleware returned an HTML 302 redirect (no Accept header → not a JSON client), fetch() followed it silently, received an HTML login page with HTTP 200, and the
caller's .json() parse threw "Unexpected token '<'…". Sending the header ensures the
middleware returns 401 JSON instead, and the UI displays a proper error message.