When launching a new page with puppeteer-sharp:
var page = await browser.NewPageAsync();
Dictionary<string, string> headers = new Dictionary<string, string>();
headers.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36");
headers.Add("upgrade-insecure-requests", "1");
headers.Add("accept", "text/html,application/xhtml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3");
headers.Add("accept-encoding", "gzip, deflate, br");
headers.Add("accept-language", "en-US,en;q=0.9,en;q=0.8");
await page.SetExtraHttpHeadersAsync(headers);
await page.GoToAsync(fullUrl);
It throws error:
Javascript is disabled or blocked by an extension (ad blockers for example)
Your browser does not support cookies
Please make sure that Javascript and cookies are enabled on your browser and that you are not blocking them from loading.
Could not locate any reference to enable JavaScript/Cookies on it's site. Any idea how to handle the situation?