Google chrome extension 安全页面上的chrome.tabs.captureVisibleTab?

Google chrome extension 安全页面上的chrome.tabs.captureVisibleTab?,google-chrome-extension,Google Chrome Extension,我正在开发一个chrome插件,它通过“chrome.tabs.captureVisibleTab”使用屏幕捕获功能,但在https页面上失败。我请求获得安全页面的权限: permissions:[ "tabs", "http://*/*", "https://*/*" ], 在安全页面上也可以这样做吗 这是我在示例URL中看到的错误: Error during tabs.captureVisibleTab: Cannot access contents of url "http

我正在开发一个chrome插件,它通过“chrome.tabs.captureVisibleTab”使用屏幕捕获功能,但在https页面上失败。我请求获得安全页面的权限:

 permissions:[
    "tabs", "http://*/*", "https://*/*"
 ],
在安全页面上也可以这样做吗

这是我在示例URL中看到的错误:

 Error during tabs.captureVisibleTab: Cannot access contents of url "https://www.host.com/test". Extension manifest must request permission to access this host. 

我想你应该使用


T.

还是一样。看到此错误:制表期间出错。captureVisibleTab:无法访问url“”的内容。扩展清单必须请求访问此主机的权限。