I am creating an extension which gets cookie from my domain and process it. But the problem here is that chrome.cookies.getAll(domain:"mydomain")
doesnt return the all the cookies. for example i am getting cookies of
firebase.google.com but its retuning only one cookie but when i go to
firebase.google.com i could many cookie items
Manifest permission i used
"permissions": [ "tabs", "activeTab", "cookies", "https://*/*", "contextMenus", "storage", "webNavigation" ],
backgroundjs:
How could i get all the cookies in getAll function?
const matchDomain = '.firebase.google.com';
chrome.cookies.getAll({}, cookies => {
const filteredCookies = cookies.filter(cookie =>
cookie.domain.endsWith(matchDomain)
)
console.log(filteredCookies)
})
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/3a9adf50-c913-4163-ba79-2243d7862f47%40chromium.org.
Your (Simeon) screenshot actually seems to show a Developer Tools bug.I would expect (right hand entry) .youtube.com cookies not to show up in the (left hand picked) firebase.google.com domain cookies, but only in the (left hand picked) youtube.com domain cookies.Otherwise, why are there (left hand) domains at all there if they show unrelated cookies?I do not think they are supposed to show cookies-per-frame.(Note that the domain column is relevant even if this seemingly buggy behavior is fixed, because foo.baz.com can see .baz.com cookies)☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/3a9adf50-c913-4163-ba79-2243d7862f47%40chromium.org.
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/610d60ba-2c01-47f5-8035-59fdba6bae2f%40chromium.org.