fix(ui): add X-CSRF-Token header to retry fetch calls in file_detail.html

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-22 21:37:22 +00:00
parent 29e059cb75
commit a9dcdb7a0d
+4 -2
View File
@@ -599,7 +599,8 @@
const response = await fetch(`/api/files/${fileId}/reprocess`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'X-CSRF-Token': getCsrfToken()
}
});
@@ -651,7 +652,8 @@
const response = await fetch(`/api/files/${fileId}/retry-subtask?subtask_name=${subtaskName}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'X-CSRF-Token': getCsrfToken()
}
});