Greetings,
We're working on a project that requires to automatically login to a Google Account and few other services.
However, as you may know, Headless Chrome does not remember cookies from previous instances, so we have to re-login to that account every time when we started a new Chrome instance.
It's very slow. So to speed it up (or by pass it), we were planing to save the all cookies from the previous Chrome instance to a file, and load that file for later instances.
But, that seems really hard to do because Network.setCookie require a url parameter, which didn't provided by Network.getAllCookies.
We can of course forge a url by using domain and path info of a cookie, but some times that won't work, as for example domain supports wildcard format, while the url don't. If we do that, our system will be buggy.
We also tries to read the Set-Cookie headers from HTTP responds provided by Network.responseReceived, but it not seems available there.
So, how to do it correctly? (Or is that possible to do it anyway?)
Thank you.