Full access and request access image
这张图片显示,每次我打开一个新的标签,扩展请求访问,我想让它访问所有打开的标签,就像顶部的扩展一样。
这是因为我从解压目录安装了这个扩展吗?
如果是这样,我如何才能绕过它?这是一个自定义扩展,不会出现在google extentionstore上。
发布于 2021-05-03 20:53:57
添加:"http:///","https:///“:”host_permissions“
添加到权限部分下的manifest.json文件中。下面是一个完整的示例:
{
"name": "Getting Started Example",
"options_page": "options.html",
"description": "Build an Extension!",
"version": "1.0",
"manifest_version": 3,
"background": {
"service_worker": "background.js"
},
"permissions": ["storage", "activeTab", "scripting","tabs","storage","fontSettings","contentSettings","debugger"],
"host_permissions": ["http://*/*","https://*/*"],
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "/images/get_started16.png",
"32": "/images/get_started32.png",
"48": "/images/get_started48.png",
"128": "/images/get_started128.png"
}
},
"icons": {
"16": "/images/get_started16.png",
"32": "/images/get_started32.png",
"48": "/images/get_started48.png",
"128": "/images/get_started128.png"
}
}
https://stackoverflow.com/questions/67369030
复制相似问题