Skip to content

Commit c9a24e7

Browse files
committed
fix: credentials is needed now
1 parent e70e982 commit c9a24e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export async function fetchComments(videoId: string) {
2525

2626
debug(`fetch comments: page ${page}`)
2727
const response = await fetch(
28-
`https://api.bilibili.com/x/v2/reply?${params}`
28+
`https://api.bilibili.com/x/v2/reply?${params}`,
29+
{ credentials: 'include' }
2930
)
3031

3132
const data: CommentDetailsResponse = await response.json()

0 commit comments

Comments
 (0)