我正在尝试在我的chrome-extension://
网址上设置Cookie,但是我收到了无主机权限错误。
这是我的manifest.json:
{
"manifest_version": 2,
"name": "MyExtension",
"description": "Do stuff",
"version": "0.1",
"icons": { "16": "icon.png",
"48": "icon.png",
"128": "icon.png" },
"options_page": "options.html",
"permissions": [
"<all_urls>", "tabs", "background", "contextMenus", "cookies", "storage"
],
"background": {
"scripts": ["background.js"]
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["nav.js"]
}
]
}