From 0ac5f3b93c9cd396f86c3989a1a77adcdae3ec12 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 1 Jul 2023 09:40:58 -0400 Subject: [PATCH] Accept third party cookies in WebView instances May help with Cloudflare. --- .../main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt b/core/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt index 5db238c4d..7da98f810 100644 --- a/core/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt +++ b/core/src/main/java/eu/kanade/tachiyomi/util/system/WebViewUtil.kt @@ -12,7 +12,7 @@ import tachiyomi.core.util.system.logcat object WebViewUtil { const val SPOOF_PACKAGE_NAME = "org.chromium.chrome" - const val MINIMUM_WEBVIEW_VERSION = 109 + const val MINIMUM_WEBVIEW_VERSION = 111 fun supportsWebView(context: Context): Boolean { try { @@ -47,6 +47,8 @@ fun WebView.setDefaultSettings() { builtInZoomControls = true displayZoomControls = false } + + CookieManager.getInstance().acceptThirdPartyCookies(this) } private fun WebView.getWebViewMajorVersion(): Int {