From 8d560d18f4646227c2e21fca8b9ec62831483f62 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 3 Nov 2025 11:30:10 +0800 Subject: [PATCH] fix(route/bilibili/video): update Referer and origin headers for API request --- lib/routes/bilibili/video.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/bilibili/video.ts b/lib/routes/bilibili/video.ts index 84108c47f..c11bc5033 100644 --- a/lib/routes/bilibili/video.ts +++ b/lib/routes/bilibili/video.ts @@ -49,7 +49,8 @@ async function handler(ctx: Context) { ); const response = await got(`https://api.bilibili.com/x/space/wbi/arc/search?${params}`, { headers: { - Referer: `https://space.bilibili.com/${uid}/video?tid=0&pn=1&keyword=&order=pubdate`, + Referer: `https://space.bilibili.com/${uid}`, + origin: `https://space.bilibili.com`, Cookie: cookie, }, });