fix: reduced cookie header length when calling with rewards bing api (#457)

Seems fine, not breaking. Thank!
This commit is contained in:
hmcdat
2026-01-25 18:29:00 +07:00
committed by GitHub
parent 175ba45543
commit e5731ff6db
5 changed files with 25 additions and 5 deletions

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }