Hi everyone,
I'm trying to store cookies from a website and load/save them on each visit.
For regular cookies, I could use
window.document.cookieBut some wesbites store HTTP-only cookies.
From
Wikipedia:
An HttpOnly cookie cannot be accessed by client-side APIs, such
as JavaScript. This restriction eliminates the threat of cookie theft
via cross-site scripting (XSS). However, the cookie remains vulnerable
to cross-site tracing (XST) and cross-site request forgery (XSRF) attacks. A cookie is given this characteristic by adding the HttpOnly
flag to the cookie.
The cookieJar used by jsdom is tough to handle.
The cookieJar CAN get
http-only cookies but the tough-cookie object methods can't be accessed as I
posted before.
Does anybody knows a way to get all the cookies from jsdom?
Many thanks!