$client = \Symfony\Component\Panther\Client::createChromeClient(null, [
'--window-size=1366,768',
'--headless',
'--disable-gpu',
],['port' => 9115]);
foreach ($cookie_arr as $key=>$value) {
$cookie = new Cookie($key, $value, null, '/', 'site.org');
$client->getCookieJar()->set($cookie);
}
$crawler = $client->request('GET', 'https://site.org/page');