From e5731ff6dba0388bcf90c303ad0b10d9a8fa25c6 Mon Sep 17 00:00:00 2001 From: hmcdat <90164248+hmcdat@users.noreply.github.com> Date: Sun, 25 Jan 2026 18:29:00 +0700 Subject: [PATCH] fix: reduced cookie header length when calling with rewards bing api (#457) Seems fine, not breaking. Thank! --- src/functions/activities/api/DoubleSearchPoints.ts | 6 +++++- src/functions/activities/api/FindClippy.ts | 6 +++++- src/functions/activities/api/Quiz.ts | 6 +++++- src/functions/activities/api/UrlReward.ts | 6 +++++- src/functions/activities/browser/SearchOnBing.ts | 6 +++++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/functions/activities/api/DoubleSearchPoints.ts b/src/functions/activities/api/DoubleSearchPoints.ts index a80981d..89099ac 100644 --- a/src/functions/activities/api/DoubleSearchPoints.ts +++ b/src/functions/activities/api/DoubleSearchPoints.ts @@ -22,7 +22,11 @@ export class DoubleSearchPoints extends Workers { } this.cookieHeader = this.bot.browser.func.buildCookieHeader( - this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop + this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop, [ + 'bing.com', + 'live.com', + 'microsoftonline.com' + ] ) const fingerprintHeaders = { ...this.bot.fingerprint.headers } diff --git a/src/functions/activities/api/FindClippy.ts b/src/functions/activities/api/FindClippy.ts index c5138a5..92c3078 100644 --- a/src/functions/activities/api/FindClippy.ts +++ b/src/functions/activities/api/FindClippy.ts @@ -26,7 +26,11 @@ export class FindClippy extends Workers { } this.cookieHeader = this.bot.browser.func.buildCookieHeader( - this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop + this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop, [ + 'bing.com', + 'live.com', + 'microsoftonline.com' + ] ) const fingerprintHeaders = { ...this.bot.fingerprint.headers } diff --git a/src/functions/activities/api/Quiz.ts b/src/functions/activities/api/Quiz.ts index 07c5b0d..ca20c57 100644 --- a/src/functions/activities/api/Quiz.ts +++ b/src/functions/activities/api/Quiz.ts @@ -24,7 +24,11 @@ export class Quiz extends Workers { try { this.cookieHeader = this.bot.browser.func.buildCookieHeader( - this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop + this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop, [ + 'bing.com', + 'live.com', + 'microsoftonline.com' + ] ) const fingerprintHeaders = { ...this.bot.fingerprint.headers } diff --git a/src/functions/activities/api/UrlReward.ts b/src/functions/activities/api/UrlReward.ts index 7dd3569..cb47aef 100644 --- a/src/functions/activities/api/UrlReward.ts +++ b/src/functions/activities/api/UrlReward.ts @@ -31,7 +31,11 @@ export class UrlReward extends Workers { try { this.cookieHeader = this.bot.browser.func.buildCookieHeader( - this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop + this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop, [ + 'bing.com', + 'live.com', + 'microsoftonline.com' + ] ) const fingerprintHeaders = { ...this.bot.fingerprint.headers } diff --git a/src/functions/activities/browser/SearchOnBing.ts b/src/functions/activities/browser/SearchOnBing.ts index c9c798f..776231a 100644 --- a/src/functions/activities/browser/SearchOnBing.ts +++ b/src/functions/activities/browser/SearchOnBing.ts @@ -33,7 +33,11 @@ export class SearchOnBing extends Workers { try { this.cookieHeader = this.bot.browser.func.buildCookieHeader( - this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop + this.bot.isMobile ? this.bot.cookies.mobile : this.bot.cookies.desktop, [ + 'bing.com', + 'live.com', + 'microsoftonline.com' + ] ) const fingerprintHeaders = { ...this.bot.fingerprint.headers }