I am trying to chrome.cookies.getAll in the background script with manifest V2:
{
"background": {...},
"browser_action": {...},
"permissions": [
"cookies",
"storage",
"webRequest",
"webRequestBlocking",
"*://*.abc.com/"
],
}
But I get following error:
Unchecked runtime.lastError: No host permissions for cookies at url: "http://.abc.com/".
It runs perfectly fine if I change the host to "*://*/" in the manifest permissions, like this:
{
"background": {...},
"browser_action": {...},
"permissions": [
"cookies",
"storage",
"webRequest",
"webRequestBlocking",
"*://*/"
],
}
I don't want to keep it open and I want to restrict it to abc.com. How can I achieve it?