mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-09-25 16:15:44 +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', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${localStorage.getItem('apiKey')}`
|
||||
'X-API-Key': `${localStorage.getItem('apiKey')}`
|
||||
},
|
||||
body: formData
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user