Allow all cookies or set a specific

This issue has been tracked since 2022-10-17.

Is there a way to tell browserless chrome to allow all cookies or set a specific?
I got this problem: dgtlmoon/changedetection.io#1027

Its running in a docker container on unraid.

andyMrtnzP wrote this answer on 2022-10-18

Puppeteer allows setting cookies fairly easily.

const cookies = [
  {name: 'cookie1', value: 'hello', domain: 'example.com'},
  {name: 'cookie2', value: 'world', domain: 'example.com'},
];

await page.setCookie(...cookies);

If you are using browserless' HTTP APIs, you can set cookies as well, sending them on the JSON payload:

{
  "url": "https://example.com/", 
  "cookies": [
    {"name": "cookie", "value": "hello world", "domain": "example.com"}
  ]
}

Though there's no way to set or get HTTP-only cookies. We recommend checking our blogpost about handling session data.

More Details About Repo
Owner Name browserless
Repo Name chrome
Full Name browserless/chrome
Language TypeScript
Created Date 2017-11-17
Updated Date 2023-03-22
Star Count 5309
Watcher Count 47
Fork Count 516
Issue Count 29

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date