- 1 Read the name prefix
If the cookie name starts with
__Host-or__Secure-, Chrome’s prefix rules apply on every write, including CookieMan save and Import. - 2 Fix the JSON in the converter
Paste the object. Adjust fields in the output (or in the input and reconvert). The tool does not auto-correct prefixes — illegal combinations stay illegal until you edit them.
- 3 Import on the exact host over HTTPS
Open
https://example.com(not a subdomain if the cookie is host-only). Import → Apply. If Chrome still rejects, the popup shows the API error.
Prefix rules Chrome enforces
| Prefix | Required | Typical broken export |
|---|---|---|
__Host- | Secure, Path=/, no Domain (host-only) | Netscape added .example.com and column 2 TRUE |
__Secure- | Secure | Imported onto http:// |
__Host- cookie to cookies.txt and back will usually make Chrome reject it. Keep JSON Array for prefixed names. Legal JSON for a __Host- cookie
{
"name": "__Host-session",
"value": "abc123",
"domain": "example.com",
"path": "/",
"secure": true,
"httpOnly": true,
"sameSite": "lax",
"hostOnly": true
}