fix(route/bilibili/video): update Referer and origin headers for API request
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user