This is what I've been trying to do in the console of the extension:
chrome.tabs.executeScript({code: "document.cookie"})
But for some reason, it always ends up returning "undefined" in the console logs. Is there a reason for this, or a way to get all the cookies on the current tab the extension is on?
This is my manifest.json:
{
"manifest_version": 2,
"name": "Extension",
"description": "Sample Description",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"permissions": [
"activeTab",
"https://ajax.googleapis.com/",
"windows",
"cookies",
"tabs",
]
}