"resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension" Code Answer

1

update: finally figured out your problem. in eventpage.js, you tried to inject js/leoscript.js, which is not whitelisted, instead of js/leoscript.js (with a capital 's'), which is whitelisted. note that urls are case-sensitive!

chrome.tabs.executescript(tabid, {file: 'js/leoscript.js'});

leoscript.js:

alert('injected');
document.getelementbyid('username').value='aaaaaaa';
By ericn on October 14 2022

Answers related to “resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension”

Only authorized users can answer the Search term. Please sign in first, or register a free account.