Я пытаюсь опубликовать в интернет-магазине расширение Chrome.и в области разработчика Chrome я получил ошибку.я попытался добавить к своему манифесту в представлении «activeTab», но ничего не изменилось.
это мой манифест:
{
"name": "scan document",
"version": "1.0",
"manifest_version": 2,
"description": "scan document",
"browser_action": {
"default_icon": {
"16": "icon.png"
}
},
"content_scripts": [{
"matches": ["<all_urls>"],
"js": ["contentScript.js"],
"all_frames": true
}],
"background": {
"scripts": ["background.js"]
},
"permissions": [
"nativeMessaging"
],
"optional_permissions": [
"downloads.open",
"<all_urls>"
]
}
это ошибка:
Because of the following issue, your extension may require an in-depth review:
- Broad host permissions
Instead of requesting broad host permissions, consider using the activeTab permission, or specify the sites that your extension needs access to. Both options are more secure than allowing full access to an indeterminate number of sites, and they may help minimize review times.
The activeTab permission allows access to a tab in response to an explicit user gesture.
{
...
"permissions": ["activeTab"]
}
If your extension only needs to run on certain sites, simply specify those sites in the extension manifest:
{
...
"permissions": ["https://example.com/*"]
}
что я могу сделать?