electron-webview-quick-start
electron-webview-quick-start copied to clipboard
how can i use 2 or 3 webviews in one project with different cookies?
how can i use 2 or 3 webviews in one project with different cookies?
We can access and modify/clear cookies, and official docs reference is here: https://electronjs.org/docs/api/cookies
Other refs:
You can use different partitions on every webview tag partition="persist:github". Cookies are accessible everywhere in the project by partition name. When using another webview, ensure that partition attribute for another session is removed. https://www.electronjs.org/docs/api/webview-tag#partition
You can use different partitions on every webview tag partition="persist:github". Cookies are accessible everywhere in the project by partition name. When using another webview, ensure that partition attribute for another session is removed. https://www.electronjs.org/docs/api/webview-tag#partition
hey there, so I can just use the same url(tag src) on a couple webviews ,and set different partition to set different cookies? yeah, I get there, thk