I need to ask for *://*/*
permission, but I don't know how to do this, because with .permissions.require()
doesn't work.
Steps I followed:
Insert
*://*/*
as "optional_permissions" in the manifestUse this code to try to ask for permission
const permissionsToRequest = { permissions: ["*://*/*"] } async function onResponse(response) { if (response) { //Granted console.log("Granted"); } else { //Refused console.log("Refused"); } return browser.permissions.getAll(); } console.log("Yes"); browser.permissions.request(permissionsToRequest).then(onResponse);
I tried to use also “origins” but nothing… doesn’t work anyway