Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Add CSRF token to benchmark delete and cancel requests

LearningCircuit73095b498d63
diff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.html
index 8f5fe5f7d8..7da401bf96 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -1042,11 +1042,15 @@ async function cancelAndDeleteBenchmarkRun(runId) {
}
try {
+ // Get CSRF token
+ const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
+
// First cancel the benchmark
const cancelResponse = await fetch(`/benchmark/api/cancel/${runId}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
+ 'X-CSRFToken': csrfToken
}
});
@@ -1201,10 +1205,14 @@ notes: |
async function deleteBenchmarkRun(runId) {
try {
+ // Get CSRF token
+ const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
+
const response = await fetch(`/benchmark/api/delete/${runId}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
+ 'X-CSRFToken': csrfToken
}
});