fix: Backup-Download (0 Bytes + fehlender Dateiname)

- api.js: credentials: 'include' hinzugefügt (Auth-Cookie)
- BackupEndpoint.cs: Task<IResult> → Task mit direktem Response-Handling
  (ASP.NET hat IResult nicht korrekt verarbeitet → leerer Body)
This commit is contained in:
Meleki committed 2026-03-03 10:01:30 +01:00
1 parent a32de29d25
commit 0c4d32de0f
2 files changed
+28 -7

No files matched your search

+1 -1
View File
@@ -299,7 +299,7 @@ async function apiTelegramDeleteWebhook() {
}
async function apiBackupDb() {
const resp = await fetch('/api/backup', { method: 'POST' });
const resp = await fetch('/api/backup', { method: 'POST', credentials: 'include' });
if (!resp.ok) throw new Error('Backup fehlgeschlagen');
const blob = await resp.blob();
const cd = resp.headers.get('content-disposition') || '';