Hello,
I’m having an issue to find how I can have the user permission to access a website data.
This is a part of my Manifest V3:
"host_permissions": [
"https://github.com/*"
],
"permissions": [
"storage",
"tabs",
"webRequest"
],
"content_scripts": [
{
"matches": [
"https://github.com/*"
],
"run_at": "document_idle",
"js": [
"./content.github.js"
]
},
If I go to github my add-on won’t work and I won’t have any popup asking for the permissions. I understand that now with Manifest V3 it’s opt-in. But how can I ask for the permission to run the content scripts?
I’m aware of browser.permissions.request
but I didn’t find how to use it to give access to the website data / allowing my content script.
Is there another solution?
The image below summarize what I want to do: