[PR #1636] [CLOSED] feat: Add cookie support for browser page access #1872

Closed
opened 2026-03-02 11:59:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/1636
Author: @liCells
Created: 6/20/2025
Status: Closed

Base: mainHead: main


📄 Description

Cookies are now managed through a JSON file specified by the BROWSER_COOKIE_PATH configuration.

Changes

  • Introduced BROWSER_COOKIE_PATH configuration to specify the path to the cookies JSON file.
  • Added cookie functionality, JSON file parsing, and path validation.

Example Cookies JSON File

The cookies JSON file should be an array of cookie objects with the following properties:

[
  {
    "name": "auth_token",
    "value": "xxx",
    "domain": "xxx.com",
    "path": "/"
  }
]

Additional properties like secure, httpOnly, or expires can be included to configure cookie behavior as needed.
Specific reference can be made to CookieParam.

Misc

For example adding the auth_token for x/twitter gives access to some of the protected tweets.

Of course, it can also be applied to other similar websites.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/1636 **Author:** [@liCells](https://github.com/liCells) **Created:** 6/20/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description Cookies are now managed through a JSON file specified by the BROWSER_COOKIE_PATH configuration. ### Changes - Introduced BROWSER_COOKIE_PATH configuration to specify the path to the cookies JSON file. - Added cookie functionality, JSON file parsing, and path validation. ### Example Cookies JSON File The cookies JSON file should be an array of cookie objects with the following properties: ```json [ { "name": "auth_token", "value": "xxx", "domain": "xxx.com", "path": "/" } ] ``` Additional properties like secure, httpOnly, or expires can be included to configure cookie behavior as needed. Specific reference can be made to [CookieParam](https://pptr.dev/api/puppeteer.cookieparam). ### Misc For example adding the auth_token for x/twitter gives access to some of the protected tweets. Of course, it can also be applied to other similar websites. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:59:33 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1872
No description provided.