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,