Add more URLs for consent cookie
This commit is contained in:
parent
3048e39106
commit
01da5277ee
|
@ -249,16 +249,18 @@ function createWindow (useProxy = false, proxyUrl = '') {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
mainWindow.webContents.session.cookies.set({
|
// Set CONSENT cookie on reasonable domains
|
||||||
url: 'https://www.youtube.com',
|
[
|
||||||
name: 'CONSENT',
|
'http://www.youtube.com',
|
||||||
value: 'YES+'
|
'https://www.youtube.com',
|
||||||
})
|
'http://youtube.com',
|
||||||
|
'https://youtube.com'
|
||||||
mainWindow.webContents.session.cookies.set({
|
].forEach(url => {
|
||||||
url: 'https://consent.youtube.com',
|
mainWindow.webContents.session.cookies.set({
|
||||||
name: 'CONSENT',
|
url: url,
|
||||||
value: 'YES+'
|
name: 'CONSENT',
|
||||||
|
value: 'YES+'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
settingsDb.findOne({
|
settingsDb.findOne({
|
||||||
|
|
Loading…
Reference in New Issue