From 14445d40646dba8953a3bfbb705cb124326f3238 Mon Sep 17 00:00:00 2001 From: adminsopel Date: Fri, 1 May 2026 09:48:08 +0200 Subject: [PATCH] Fix frontend fetch syntax --- web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app.js b/web/app.js index 759ef79..84265ee 100644 --- a/web/app.js +++ b/web/app.js @@ -12,7 +12,7 @@ const state = { }; async function api(path, opts = {}) { - const res = await {fetch(U(path), { + const res = await fetch(U(path), { credentials: 'same-origin', headers: opts.body instanceof FormData ? {} : {'Content-Type':'application/json'}, ...opts,