在使用 chrome.scripting.executeScript() 時顯示無權限存取這個作用中的分頁.
解法:
https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions
manifest.json
"host_permissions": [
"https://www.developer.chrome.com/*"
],
"optional_host_permissions":[
"https://*/*",
"http://*/*"
],