- 1 Export JSON from Chrome
CookieMan JSON Array. Remove cookies you do not want on the API call.
- 2 Convert to Header String
Paste below. Copy the output. The serializer does not emit a
Cookie:prefix — Axios wants the value only. - 3 Attach in Node Axios
Set
headers.Cookieon the instance or the request. Do not ship the header in frontend bundles.
Node Axios snippet
import axios from "axios";
const cookieHeader = "session_id=abc123; theme=dark"; // from this converter
const api = axios.create({
baseURL: "https://api.example.com",
headers: { Cookie: cookieHeader },
});
const { data } = await api.get("/v1/me");
Cookie from JavaScript for your own origin’s HttpOnly cookies, and CORS plus forbidden headers stop you from attaching Cookie to cross-site XHR. This header path is for Node, curl, and other non-browser HTTP clients. Header versus a real cookie jar
| Approach | Keeps Domain / Secure / HttpOnly? | Where it works |
|---|---|---|
headers.Cookie string | No — values only | Node Axios, httpie, fetch in Node |
| Netscape jar + curl | Domain, Secure, HttpOnly prefix | CLI |
| CookieMan Import JSON | Full attributes | Chrome / Edge |
tough-cookie and axios-cookiejar-support exist if you need a jar in Node. This page stops at producing the header or a cookies.txt you can load elsewhere.