From 3064f51d256bc64eb37e71115375e162de482545 Mon Sep 17 00:00:00 2001 From: David Brochero <65723952+D-Brox@users.noreply.github.com> Date: Sun, 10 May 2026 20:01:51 -0300 Subject: [PATCH] fix: don't resuse invalidated `cf_clearance` cookie on `CloudFlareInterceptor` (#1916) * fix: let FlareSolverr handle it's own `cf_clearance` cookie also dedups cookies * linting * suggested changes * my bad * add to changelog --- CHANGELOG.md | 1 + .../network/interceptor/CloudflareInterceptor.kt | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54e24186..b1ffaddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - . ### Fixed +- (CloudFlareInterceptor) Don't send the `cf_clearance` cookie back to Flaresolverr - (WebUI) Handle serving non-default webui with "bundled" - (WebUI) Wait until WebUI is ready to open in browser diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt index cae62706..c19ee0f3 100644 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt @@ -103,7 +103,7 @@ class CloudflareInterceptor( companion object { private val ERROR_CODES = listOf(403, 503) private val SERVER_CHECK = arrayOf("cloudflare-nginx", "cloudflare") - private val COOKIE_NAMES = listOf("cf_clearance") + val COOKIE_NAMES = listOf("cf_clearance") private val CHROME_IMAGE_TEMPLATE_REGEX = Regex("""