I'm trying to run a Chrome extension I'm developing locally but whenever I try to use JQuery's full, minified (Or even unminified) JS file locally downloaded under "js/jquery-3.5.1.min.js". The slim build works, but I do not have access to certain features I need for my app. Whenever I load the extension I get the following error message:
Refused to execute inline script because it violates the following Content Security Policy directive:
"script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash
('sha256-82hEkGrSMJh3quMSG4f7FbngmAPLTDM63H4eNayS4Us='), or a nonce ('nonce-...') is required to enable
inline execution.
This is how I import JQuery in my main popup file "index.html":
...
</div>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="index.js"></script>
</body>
...
This is the Javascript code I have running that I need JQuery for, keep in mind it still runs properly, even with the errors:
$(document).ready(function () {
var optionsImage = $("#setting-img")[0];
$("#setting-img").load("options.html",function(data){
console.log(data)
});
I have messed with the manifest.json plenty, including adding a hash and other settings under CSP, nothing works.