From b95895cecfdc350b8af53247a7a60b1604734fcb Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 10 Dec 2025 16:57:44 +0800 Subject: [PATCH] compat(opds): fallback to Basic auth if no WWW-Authenticate challenge in the response headers, closes #2656 (#2673) --- apps/readest-app/src/app/opds/utils/opdsReq.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/readest-app/src/app/opds/utils/opdsReq.ts b/apps/readest-app/src/app/opds/utils/opdsReq.ts index e879204a..396a0294 100644 --- a/apps/readest-app/src/app/opds/utils/opdsReq.ts +++ b/apps/readest-app/src/app/opds/utils/opdsReq.ts @@ -210,6 +210,10 @@ export const probeAuth = async ( } else if (wwwAuthenticate.toLowerCase().startsWith('basic')) { return createBasicAuth(finalUsername, finalPassword); } + } else { + // Fallback to Basic auth if no WWW-Authenticate header + // some older Calibre-Web versions behave this way, see issue #2656 + return createBasicAuth(finalUsername, finalPassword); } }