Skip to content

Commit

Permalink
Ignore cookie domain mismatch error in SetCookie #470
Browse files Browse the repository at this point in the history
  • Loading branch information
Huachao committed Jan 10, 2020
1 parent 40287ec commit 5768900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class HttpClient {
res => {
if (this._settings.rememberCookiesForSubsequentRequests) {
const setCookie = getHeader(res.headers, 'set-cookie') as string[] | undefined;
setCookie?.map(rawCookie => this.cookieJar.setCookieSync(rawCookie, res.url));
setCookie?.map(rawCookie => this.cookieJar.setCookieSync(rawCookie, res.url, { ignoreError: true }));
}
return res;
}
Expand Down

0 comments on commit 5768900

Please sign in to comment.