From 34a2475f5d6b7b274c7c3fcaffc774afe6c2ba60 Mon Sep 17 00:00:00 2001 From: hoping <14806317+htmambo@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:55:53 +0800 Subject: [PATCH] test cros --- app/utils/cloud/upstash.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/utils/cloud/upstash.ts b/app/utils/cloud/upstash.ts index 5f5b9fc7..abfdbfbb 100644 --- a/app/utils/cloud/upstash.ts +++ b/app/utils/cloud/upstash.ts @@ -18,10 +18,13 @@ export function createUpstashClient(store: SyncStore) { return { async check() { try { - const res = await corsFetch(this.path(`get/${storeKey}`), { - method: "GET", - headers: this.headers(), - proxyUrl, + const res = await window.tauri.fetch({ + url: this.path(`get/${storeKey}`), + options: { + method: "GET", + headers: this.headers(), + mode: "cors", + } }); console.log("[Upstash] check", res.status, res.statusText); return [200].includes(res.status);