diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..30506ac Binary files /dev/null and b/.DS_Store differ diff --git a/public/common.js b/public/common.js index 90549d6..736a75c 100644 --- a/public/common.js +++ b/public/common.js @@ -6,6 +6,7 @@ window.api = { async req(method, path, body) { const res = await fetch(path, { method, + credentials: "same-origin", headers: body ? { "Content-Type": "application/json" } : undefined, body: body ? JSON.stringify(body) : undefined, });