Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome 在electron和chrome之间共享Cookie?_Google Chrome_Cookies_Electron - Fatal编程技术网

Google chrome 在electron和chrome之间共享Cookie?

Google chrome 在electron和chrome之间共享Cookie?,google-chrome,cookies,electron,Google Chrome,Cookies,Electron,是否可以在应用程序和chrome之间共享cookie 使用example.com运行示例electron应用程序时,我使用以下方法设置cookie: document.cookie = 'testCookie=test; expires=Fri, 6 Aug 2021 20:47:11 UTC; path=/; domain=.example.com' 当我在chrome中导航到example.com时,我希望看到我的cookie已经设置好了。再说一遍,electron和chrome

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

使用example.com运行示例electron应用程序时,我使用以下方法设置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?

这是不可能的,抱歉。电子使用它自己的外形