diff --git a/scripts/Actions/InfiniteScroller.ts b/scripts/Actions/InfiniteScroller.ts index 6bbaeb86..e24b6b5c 100644 --- a/scripts/Actions/InfiniteScroller.ts +++ b/scripts/Actions/InfiniteScroller.ts @@ -13,7 +13,9 @@ export function loadMore(arn: AnimeNotifier, button: HTMLButtonElement) { let target = arn.app.find("load-more-target") let index = button.dataset.index - fetch("/_" + arn.app.currentPath + "/from/" + index) + fetch("/_" + arn.app.currentPath + "/from/" + index, { + credentials: "same-origin" + }) .then(response => { let newIndex = response.headers.get("X-LoadMore-Index")