diff --git a/ios/Classes/InAppWebView/InAppWebView.swift b/ios/Classes/InAppWebView/InAppWebView.swift index 7a9234ae..f2360fd3 100755 --- a/ios/Classes/InAppWebView/InAppWebView.swift +++ b/ios/Classes/InAppWebView/InAppWebView.swift @@ -532,7 +532,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)