From 595451428ae7238e50891a2fd579118ad43351ce Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 23 Feb 2026 08:55:15 +0000 Subject: [PATCH] Fix delete fetch: add credentials same-origin --- templates/emails.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/emails.html b/templates/emails.html index d9e2701..f681922 100644 --- a/templates/emails.html +++ b/templates/emails.html @@ -237,7 +237,7 @@ document.addEventListener('click', function(e) { if (!btn) return; const id = btn.dataset.id; if (!confirm('Eintrag #' + id + ' aus dem Log löschen?')) return; - fetch('/api/sent-emails/' + id + '/delete', {method: 'POST'}) + fetch('/api/sent-emails/' + id + '/delete', {method: 'POST', credentials: 'same-origin'}) .then(r => { if (!r.ok) throw new Error('HTTP ' + r.status); return r.json(); }) .then(d => { if (d.success) {