Headless Chrome - Sharing Credentials

五迷三道 提交于 2020-12-13 07:34:28

问题


I would like to automate printing a number of URLs. Headless Chrome works beautifully here ...

chrome --headless --disable-gpu --print-to-pdf="C:\tmp\test.pdf" https://time.com/

Except that the real site I want to run this on requires authentication. I was hoping that headless Chrome would share cookies with Chrome and therefore all will be hunky-dory. But I am wrong. The print indicates that JavaScript are cookies are disabled, so I can't print what I want.

Appreciate if someone could help me solve this! Many thanks in advance!!

来源:https://stackoverflow.com/questions/62602327/headless-chrome-sharing-credentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!