diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 99729a0b..b4d73817 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -166,11 +166,11 @@ export function mockUser(cookies: Partial<{ [key: string]: string }>) { } = cookies const ua = parseUA(BING_UA) - const { _U, MUID } = parseCookies(extraHeadersFromCookie({ + const { _U } = parseCookies(extraHeadersFromCookie({ BING_HEADER, BING_HEADER0, ...cookies, - }).cookie, ['MUID']) + }).cookie, []) return { 'x-forwarded-for': BING_IP || randomIP(), @@ -179,7 +179,7 @@ export function mockUser(cookies: Partial<{ [key: string]: string }>) { 'User-Agent': ua!, 'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.3 OS/Win32', 'referer': 'https://www.bing.com/search?showconv=1&sendquery=1&q=Bing%20AI&form=MY02CJ&OCID=MY02CJ&OCID=MY02CJ&pl=launch', - cookie: `_U=${_U || defaultUID}; MUID=${MUID || randomString(32)}`, + cookie: `_U=${_U || defaultUID}; MUID=${randomString(32)}`, } }