Chrome extension Content security policy

Chrome extension Content security policy
0

I am trying to recreate my wikipedia viewer but in a browser extension. I have webRequest and <all_urls> set in the permissions in the Manifest.json file. I am loading jquery locally through the js folder in the extension but I can’t seem to get past this error: Refused to load the script ‘https://en.wikipedia.org/w/api.php?action=opensearch&format=json&maxlag=5&search=doggo&callback=jQuery33105259845851237468_1549671200892&_=1549671200893’ because it violates the following Content Security Policy directive: “script-src ‘self’ blob: filesystem: chrome-extension-resource:”. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.

Here’s a github repo: https://github.com/dmoneyballer/wikipedia_search with all my code, any help getting past this error would be very appreciated.

this is the error I get in firefox:


Does this mean that I need to okay scripts running from wikipedia.org? if so how does one go about declaring that?

edge:

Stack overflow helped me out on this one: https://stackoverflow.com/a/54607292/9399106. I was kinda afraid to ask stackoverflow questions because everyone I talked to said they would make fun of me for being ignorant but I had a really great experience with asking myfirst question. whoever wOxxOm is I’m happy they exist.