Send X-***-Token on the upload XHR (fixes all uploads failing)

Fixkamo-internal
Shipped
9 Julai 2026, 23:31 UTC
Author
kamo
Commit
6e41c58

The session moved from a cookie to per-tab sessionStorage (896ea516); window.fetch is monkey-patched to attach X-***-Token to /api/* calls, but the raw XMLHttpRequest used for upload progress is NOT patched — so every upload was unauthenticated (401 -> "Failed to upload background") while every fetch()-based call **************** still worked. Set the header explicitly on the XHR via getSessionToken().

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei