diff --git a/public/index.html b/public/index.html index d868cb7..470cd7f 100644 --- a/public/index.html +++ b/public/index.html @@ -823,7 +823,7 @@ async function downloadExtension() { const btn = event.target; btn.disabled = true; btn.textContent = '⏳ Preparing download…'; 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}`); const blob = await res.blob(); const url = URL.createObjectURL(blob);