From 9a99f3e3aecfab26a4009fb24f6693c72b40a276 Mon Sep 17 00:00:00 2001 From: soichisumi Date: Sat, 25 Jan 2025 22:50:41 +0900 Subject: [PATCH] fix auth of upload --- lightrag/api/static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });