Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

119
Views
Problem in chrome extension manifest v2 hostname in manifest permissions

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!