使用JSON编辑Cookies

时间:2019-07-19 16:12:16

标签: javascript json

我正在使用Cookies快速管理器,但无法导入旧的Cookie登录信息。我希望每当我有新安装时就可以粘贴我的cookie。

我已经尝试过在线查找并询问我的朋友,他们知道一些JavaScript。

{
    "Host raw": "WEBSITE",
    "Name raw": "PYPF",
    "Path raw": "/",
    "Content raw": "3Pt2ODkDVJDrl_4KJj8tR09aAagfdgftyJKvpvXqOxqc2vb8WmIPxQ",
    "Expires": "16-08-2019 10:38:19",
    "Expires raw": "1565966299",
    "Send for": "Any type of connection",
    "Send for raw": "false",
    "HTTP only raw": "false",
    "SameSite raw": "no_restriction",
    "This domain only": "Valid for subdomains",
    "This domain only raw": "false",
    "Store raw": "firefox-default",
    "First Party Domain": ""
},
{
    "Host raw": "WEBSITE",
    "Name raw": "cookie_check",
    "Path raw": "/",
    "Content raw": "yes",
    "Expires": "19-07-2029 10:37:59",
    "Expires raw": "1879166279",
    "Send for": "Encrypted connections only",
    "Send for raw": "true",
    "HTTP only raw": "true",
    "SameSite raw": "no_restriction",
    "This domain only": "Valid for subdomains",
    "This domain only raw": "false",
    "Store raw": "firefox-default",
    "First Party Domain": ""
},
Error, no cookie restored.
SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 16 column 2 of the JSON data

0 个答案:

没有答案