chrome無頭模式下的cookie
作者: fase 日期: 2023-08-31 10:29


chrome在正常模式下,可以帶入user data和profile,自然就會把cookie帶入
但是在headless下呢,試了半天,都沒有帶入cookie
明明其它參數都一樣,只有--headless參數不同
怎麼試都不會帶入cookie
後來只好自行抓電腦裏的cookie去帶入
不過後來又發生一個參數
--headless=new
原來舊的方式並不會帶入cookie,只能自己加
新的方式才會從profile帶入cookie
為了這奇怪的問題,花了不少時間
評論: 0 |
引用: 0 |
閱讀: 163 |
回到頁首