Error: Cannot access contents of url "". Extension manifest must request permission to access this host.
更新于 阅读 11 次
开发chrome插件时报如下错误:
Uncaught (in promise) Error: Cannot access contents of url "". Extension manifest must request permission to access this host.
manifest的permission配置如下:
{ "permissions": ["storage", "activeTab", "tabs"], }
在host_perimisions中添加<all_urls>
配置即可:
{ "host_permissions": [ "<all_urls>" ], } ``