I have an MV3 extension where I have a file which I want to access via content script. I am unable to do that when I specify "extension_ids": ["myextId"] in manifest.json. However when I use "matches": ["<all_urls>"], I am able to access it. According to chrome docs
Each element must include a "resources" element and either a "matches" or "extension_ids" element.
I am getting the extension ID from extensions management page
Am i getting ID from the wrong place ?
Manifest.json
"web_accessible_resources": [
{
"resources": [
"/sample.html",
],
"extension_ids": ["liecbddmkiiihnedobmlmillhodjkdmb"]
}
]
Error
Denying load of <URL>. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
my.com/:40 Denying load of chrome-extension://liecbddmkiiihnedobmlmillhodjkdmb/sample.html. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
Isnt the extension_Ids array supposed to contain the ids of all extensions that should be able to access it or am i understanding it wrong?
Via Active questions tagged javascript - Stack Overflow https://ift.tt/3pKPjtw
Comments
Post a Comment