diff --git a/app/importer.js b/app/importer.js index dfc295c4f32..b8315f07eda 100644 --- a/app/importer.js +++ b/app/importer.js @@ -234,9 +234,17 @@ importer.on('add-cookies', (e, cookies) => { httpOnly: cookies[i].httponly, expirationDate: cookies[i].expiry_date } + // Bypassing cookie mistach error in + // https://github.com/brave/browser-laptop/issues/11401 + if (cookie.domain === '.google.com' && + (cookie.url === 'https://notifications.google.com' || + cookie.url === 'https://accounts.google.com')) { + continue + } session.defaultSession.cookies.set(cookie, (error) => { if (error) { console.error(error) + console.error(cookie) } }) }