Fix missing CSRF token on presigned URL request

This commit is contained in:
2026-03-23 16:48:25 +08:00
parent f43fad02fb
commit 0e525713b1

View File

@@ -1514,7 +1514,7 @@
};
const response = await fetch(endpoint, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
headers: { 'Content-Type': 'application/json', 'X-CSRFToken': window.getCsrfToken ? window.getCsrfToken() : '' },
body: JSON.stringify(payload),
});
const data = await response.json();