fix auth of upload

This commit is contained in:
soichisumi
2025-01-25 22:50:41 +09:00
parent 3e44df923f
commit 9a99f3e3ae

View File

@@ -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
});