I want to remove a cookie (by some criteria) from the Chrome extension. According to chrome.cookies.remove documentation , it expects an object with url fields (URL associated with the cookie) and name (Name of cookie to delete).
Now the cookie has the following fields: name, value, domain, hostOnly, path, secure, httpOnly, session, expirationDate, storeId , but not url . How to get the URL of a specific cookie so that it can be deleted?
For reference, one of my cookies is as follows:
domain: ".google.com" expirationDate: 1364393586 hostOnly: false httpOnly: false name: "PREF" path: "/" secure: false session: false storeId: "0" value: "ID=8<snip>u"
javascript cookies google-chrome-extension
Motti
source share