From 5aa78f2554440cffe3db2e57827bb473c8fc0198 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Mon, 15 Dec 2025 02:06:09 +0800 Subject: [PATCH] fix(opds): expose X-Content-Length header for CORS requests (#2715) --- apps/readest-app/src/app/api/opds/proxy/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/readest-app/src/app/api/opds/proxy/route.ts b/apps/readest-app/src/app/api/opds/proxy/route.ts index 49fd8a85..799b502a 100644 --- a/apps/readest-app/src/app/api/opds/proxy/route.ts +++ b/apps/readest-app/src/app/api/opds/proxy/route.ts @@ -125,6 +125,7 @@ async function handleRequest(request: NextRequest, method: 'GET' | 'HEAD') { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, HEAD, OPTIONS', 'Access-Control-Allow-Headers': 'Content-Type', + 'Access-Control-Expose-Headers': 'X-Content-Length', }, }); } else {