fix: extension download using wrong auth header (Authorization vs x-auth-token)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Zac Gaetano 2026-04-05 21:25:46 -04:00
parent e2c6db7113
commit cde70d386d

View file

@ -823,7 +823,7 @@ async function downloadExtension() {
const btn = event.target; const btn = event.target;
btn.disabled = true; btn.textContent = '⏳ Preparing download…'; btn.disabled = true; btn.textContent = '⏳ Preparing download…';
try { try {
const res = await fetch('/api/extension/download', { headers: { 'Authorization': 'Bearer ' + authToken } }); const res = await fetch('/api/extension/download', { headers: { 'x-auth-token': authToken || '' } });
if (!res.ok) throw new Error(`Server error ${res.status}`); if (!res.ok) throw new Error(`Server error ${res.status}`);
const blob = await res.blob(); const blob = await res.blob();
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);