mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-09-26 08:33:55 +00:00
fix auth of upload
This commit is contained in:
parent
3e44df923f
commit
9a99f3e3ae
@ -679,7 +679,7 @@
|
|||||||
const response = await fetch('/documents/upload', {
|
const response = await fetch('/documents/upload', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${localStorage.getItem('apiKey')}`
|
'X-API-Key': `${localStorage.getItem('apiKey')}`
|
||||||
},
|
},
|
||||||
body: formData
|
body: formData
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user