I'm trying to load background script from cdn path ('https://cdn.xyz.com/scripts/background.js') in manifest.json in my Chrome Extension, but it's throwing me error - Could not load background script 'https://cdn.xyz.com/scripts/background.js'. I have already added https://cdn.xyz.com in content_security_policy in manifest.json file.
Manifest.json
{
"name": "MyExtension",
"manifest_version": 2,
"background": {
"scripts": [
"https://cdn.xyz.com/scripts/background.js"
],
"persistent": false
},
"permissions": [
"http://*/*",
"https://*/*",
],
"content_security_policy": "script-src 'self' 'unsafe-eval' https://cdn.xyz.com; object-src 'self'"
}