mirror of
https://github.com/imputnet/cobalt.git
synced 2026-07-16 12:02:23 -05:00
[PR #177] [MERGED] add cookie support #13737
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/177
Author: @dumbmoron
Created: 8/16/2023
Status: ✅ Merged
Merged: 8/20/2023
Merged by: @wukko
Base:
current← Head:cookie📝 Commits (3)
a221651add cookie supportfd0357emove cookies to processingc72d9b0change cookie path capitalization for consistency with other env stuff📊 Changes
8 files changed (+118 additions, -11 deletions)
View changed files
📝
.gitignore(+3 -0)📝
docker-compose.example.yml(+3 -1)📝
package.json(+1 -0)➕
src/modules/processing/cookie/cookie.js(+37 -0)➕
src/modules/processing/cookie/cookies_example.json(+5 -0)➕
src/modules/processing/cookie/manager.js(+58 -0)📝
src/modules/processing/services/instagram.js(+11 -2)📝
src/test/tests.json(+0 -8)📄 Description
usage:
volumesin composefile):ro(cobalt will print a warning about this, ignore it)usage in services: probably the simplest api ever
import { getCookie, updateCookie } from '../../cookie/manager.js';const cookie = getCookie('<service_name>');const r = await fetch(..., { ... headers: { ..., cookie } ... })🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.