在 electron 和 chrome 之间共享 cookie?

Share cookies between electron and chrome?

是否可以在 electron 应用程序和 chrome 之间共享 cookie?

当 运行 带有 example.com 的示例电子应用程序时,我正在使用以下方法设置 cookie:

document.cookie = 
    'testCookie=test; expires=Fri, 6 Aug 2021 20:47:11 UTC; path=/; domain=.example.com'

我期待在 chrome 中导航到 example.com 时看到我的 cookie 已设置。同样,是否可以在 electron 和 chrome 之间共享 cookie?

这是不可能的,抱歉。 Electron 使用自己的配置文件。