From 562b940d9161660f30f0d1bf4f6594177f040f79 Mon Sep 17 00:00:00 2001 From: Mitchell Syer Date: Tue, 23 Jan 2024 19:21:33 -0500 Subject: [PATCH] Remove dot before cookie (#845) --- .../tachiyomi/network/interceptor/CloudflareInterceptor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 264cbccaa..032cb8467 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 @@ -178,7 +178,7 @@ object CFClearance { Cookie.Builder() .name(cookie.name) .value(cookie.value) - .domain(cookie.domain) + .domain(cookie.domain.removePrefix(".")) .path(cookie.path) .expiresAt(cookie.expires?.takeUnless { it < 0.0 }?.toLong() ?: Long.MAX_VALUE) .also {