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:
parent
e2c6db7113
commit
cde70d386d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue