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.
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.
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 |
Issue Title | Created Date | Updated Date |
---|