add fix
This commit is contained in:
@@ -342,7 +342,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
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user