fix(kosync): proxy kosync request only for the web app, closes #2440 (#2466)

This commit is contained in:
Huang Xin
2025-11-18 18:14:30 +05:30
committed by GitHub
parent 6d5b16ea8b
commit e0e991b599
2 changed files with 7 additions and 1 deletions
@@ -104,6 +104,12 @@
},
{
"url": "https://*:*"
},
{
"url": "http://*"
},
{
"url": "https://*"
}
]
},
@@ -45,7 +45,7 @@ export class KOSyncClient {
headers.set('X-Auth-Key', this.config.userkey);
}
if (this.isLanServer) {
if (this.isLanServer || isTauriAppPlatform()) {
const fetch = isTauriAppPlatform() ? tauriFetch : window.fetch;
const directUrl = `${this.config.serverUrl}${endpoint}`;