ubeacsec / Silverdog

An audio firewall for Chrome!
http://ubeacsec.org
Apache License 2.0
69 stars 7 forks source link

Permission to access respective host #6

Open ppseprus opened 7 years ago

ppseprus commented 7 years ago

So.. I was lurking around the background.js and basically the console is filled with the following error message:

Unchecked runtime.lastError while running tabs.executeScript: Cannot access contents of the page. Extension manifest must request permission to access the respective host.
at chrome-extension://icmaamleblpakoebmocjdhleldklfdia/background.js:41:17

So.. is this working then, or not? : )

mavroudisv commented 7 years ago

I need to look into it... it sounds like content-origin policy related, but it's not the same error...

ppseprus commented 7 years ago

I think the solution is the following list of permissions:

"permissions": [
    "storage",
    "tabs",
    "activeTab",
    "<all_urls>"
 ]
ppseprus commented 7 years ago

This issue is already addressed in the PR #10.