I am making a chrome extension and I have no clue as for getting ALL cookies', cause for some reason I can't reach the HttpOnly and session ones, and document.cookie obviously doesn't provide me the httponly and session ones, so I wanted to know how I can do that.
I have that code :
"permissions": [ "activeTab", "webRequest", "cookies" ]
And in my attempt to get all cookies from the current website including httponly and session ones I wrote:
var cock = "";
chrome.cookies.getAll({"url":tab[0].url},function (cookie){
for(i=0;i<cookie.length;i++){
cock+= cookie[i];
}
});
alert(cock);
But the code above didn't work at all as it was supposed to show all cookies but doesn't even work.
I would be glad to receive help on this one.