5

I'm creating a chrome extension that should be able to be accessed by the user on any website they are on. I don't have any content scripts, only popup.js and background.js. Would I need to have my host permissions in manifest V3 like this? Or am I able to omit the host_permissions?

"host_permissions": [ "*://*/*" ]

Ganning Xu
  • 263
  • 4
  • 13
  • It depends on what your extension does. – wOxxOm Jun 14 '21 at 02:54
  • @wOxxOm it is pretty much a study timer extension, that allows users to see the countdown timer based on how much time they have left in their study session. At the end of the timer, a notification is sent. – Ganning Xu Jun 14 '21 at 12:15
  • 8
    Then you don't need host_permissions. Those are only required if you want to inject something in a matching page, download from a matching URL, or observe via webRequest and similar API. – wOxxOm Jun 14 '21 at 13:25

1 Answers1

1

No, you don't need to add host permission unless your extension needs to interact directly with the users browser/client data, for example cookies, webRequest, and tabs.

this article helps: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/host_permissions#:~:text=Use%20the%20host_permissions%20key%20to,a%20request%20for%20a%20permission.

MElate
  • 31
  • 6