diff --git a/frontend/templates/file_detail.html b/frontend/templates/file_detail.html
index 97c681e9..fefd1af4 100644
--- a/frontend/templates/file_detail.html
+++ b/frontend/templates/file_detail.html
@@ -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()
}
});