I have loaded jQuery via the manifest.json and I now want he ability to dynamically load other local scripts (if needed).
I have tried the following
$.getScript(chrome.extension.getURL('script.js'), function () {
console.log("Script loaded")
});
But it gives this error
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-JNPQ...'), or a nonce ('nonce-...') is required to enable inline execution.
How can I fulfill what it asks for?