summaryrefslogtreecommitdiff
path: root/frontend/src/updater.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/updater.ts')
-rw-r--r--frontend/src/updater.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontend/src/updater.ts b/frontend/src/updater.ts
index 692a7a70..f499d030 100644
--- a/frontend/src/updater.ts
+++ b/frontend/src/updater.ts
@@ -14,8 +14,10 @@ export interface DeckyUpdater {
export async function callUpdaterMethod(methodName: string, args = {}) {
const response = await fetch(`http://127.0.0.1:1337/updater/${methodName}`, {
method: 'POST',
+ credentials: 'include',
headers: {
'Content-Type': 'application/json',
+ Authentication: window.deckyAuthToken,
},
body: JSON.stringify(args),
});