From a9dcdb7a0d51fa7a7bd2a4154b694385615fc4a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 21:37:22 +0000 Subject: [PATCH] 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> --- frontend/templates/file_detail.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() } });