I am Working on a Google Chrome extension. In one of the files, the HTML calls an external script through CDN. I know that I need to mention the same in the manifest to not violate Content Security Policy. After going through some previous questions related to the same topic, I found out the answers are not working out for me and I have no clue why? Also, I would like to mention that I am working on the new manifest version 3.
This is the CDN I am calling from the HTML File:-
<script src="https://ajaxorg.github.io/ace-builds/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
Below is the code I wrote in the manifest.json for permission:-
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'; script-src-elem 'self' 'unsafe-inline' https://ajaxorg.github.io/;"
},
Below is the error I am getting in the console window:-
I am a complete beginner working on extension, so it would be very much helpful, If someone guide me out. Thanks in Advance !!!