last one request with auth

This commit is contained in:
soichisumi
2025-01-25 22:51:35 +09:00
parent 49a632a739
commit 763b32177d

View File

@@ -486,7 +486,7 @@
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': `Bearer ${localStorage.getItem('apiKey') || ''}` 'X-API-Key': `${localStorage.getItem('apiKey') || ''}`
}, },
body: JSON.stringify({ query }) body: JSON.stringify({ query })
}); });