Load local profile into headless

1,271 views
Skip to first unread message

ohits...@gmail.com

unread,
May 20, 2017, 4:32:30 PM5/20/17
to headless-dev
Hey, 

I'm trying to load my local chrome profile with all its sign in cookies etc into chrome headless. However it seems that when I start chrome with --headless it's started with its own empty profile. 
I tried starting with --user-data-dir="C:\Users\Lenny\AppData\Local\Google\Chrome\User Data\Default" but that didn't help. 

Is there any way I can load my normal profile? 

Thanks

Lennart Bernhardt

unread,
May 20, 2017, 4:38:14 PM5/20/17
to headless-dev
Alternatively a way to say load the profile into normal chrome to setup the profile would also be ok 

Sami Kyostila

unread,
May 22, 2017, 1:27:57 PM5/22/17
to Lennart Bernhardt, headless-dev
Right, there's probably a problem with the way we load user profiles -- also causing things like https://bugs.chromium.org/p/chromium/issues/detail?id=722431.

As a workaround you can use the Network.setCookie command to register your own cookies.

- Sami

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/072f187c-4b55-46c4-9340-f7e61cf6507a%40chromium.org.
Reply all
Reply to author
Forward
0 new messages