Fix upload authentication - add authorization header

This commit is contained in:
Patrick Britton 2026-02-16 10:20:06 -06:00
parent 619c629b6b
commit 2622d0fb79

View file

@ -153,6 +153,9 @@ export default function AIModerationPage() {
const response = await fetch('/api/v1/admin/upload-test-image', { const response = await fetch('/api/v1/admin/upload-test-image', {
method: 'POST', method: 'POST',
body: formData, body: formData,
headers: {
'Authorization': `Bearer ${localStorage.getItem('token') || ''}`,
},
}); });
if (!response.ok) { if (!response.ok) {