From 93187105f4398e66e390d6b17607c66bec1ef14f Mon Sep 17 00:00:00 2001 From: "gitlab.scripts" Date: Thu, 24 Feb 2022 13:38:13 +0100 Subject: [PATCH] fix persistance --- ios/Classes/InAppWebView/InAppWebView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/InAppWebView/InAppWebView.swift b/ios/Classes/InAppWebView/InAppWebView.swift index f49fcef7..28e5e6b2 100755 --- a/ios/Classes/InAppWebView/InAppWebView.swift +++ b/ios/Classes/InAppWebView/InAppWebView.swift @@ -528,7 +528,7 @@ public class InAppWebView: WKWebView, UIScrollViewDelegate, WKUIDelegate, WKNavi // See also https://forums.developer.apple.com/thread/97194 // check if websiteDataStore has not been initialized before if(!options.incognito && options.cacheEnabled) { - configuration.websiteDataStore = WKWebsiteDataStore.nonPersistent() + configuration.websiteDataStore = WKWebsiteDataStore.default() } for cookie in HTTPCookieStorage.shared.cookies ?? [] { configuration.websiteDataStore.httpCookieStore.setCookie(cookie, completionHandler: nil)