From f46abbb5b5be8e5febbda3eba32c4c91a869df39 Mon Sep 17 00:00:00 2001 From: Yun Jiang <66518086+yjiang-c@users.noreply.github.com> Date: Mon, 2 Sep 2024 20:42:51 +0100 Subject: [PATCH] fix(mobile): set SSL options properly in background backup process (#11870) (#12206) Co-authored-by: Yun Jiang --- mobile/lib/services/background.service.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/lib/services/background.service.dart b/mobile/lib/services/background.service.dart index b27ed34b946ce..fc3feb174d582 100644 --- a/mobile/lib/services/background.service.dart +++ b/mobile/lib/services/background.service.dart @@ -349,6 +349,7 @@ class BackgroundService { Future _onAssetsChanged() async { final Isar db = await loadDb(); + HttpOverrides.global = HttpSSLCertOverride(); ApiService apiService = ApiService(); apiService.setAccessToken(Store.get(StoreKey.accessToken)); AppSettingsService settingService = AppSettingsService();