diff --git a/lightrag/api/static/index.html b/lightrag/api/static/index.html index 0400aa5f..74d5c59f 100644 --- a/lightrag/api/static/index.html +++ b/lightrag/api/static/index.html @@ -679,7 +679,7 @@ const response = await fetch('/documents/upload', { method: 'POST', headers: { - 'Authorization': `Bearer ${localStorage.getItem('apiKey')}` + 'X-API-Key': `${localStorage.getItem('apiKey')}` }, body: formData });