I'm developing a Chrome Extension but there is something wrong. I checked all similar questions in StackOverflow but I can't fix this problem.
I want to import a Youtube iFrame API and other things but I have some error with this.
and here is my mainfest.json
{
"manifest_version": 2,
"name": "tetoda_robot_chromeExtension",
"description": "chromeExtension Test",
"version": "1.0.0",
"content_security_policy":"script-src 'self' https://www.youtube.com/player_api https://kit.fontawesome.com/a076d05399.js https://www.googleapis.com; object-src 'self'",
"browser_action": {
"default_icon": "logo.png",
"default_popup": "popup.html"
},
"permissions": [
"tabs",
"<all_urls>"
]
}
I already tried to use meta tag with content-security-policy
option, and it seemed to work but I got more errors as well.
<meta http-equiv="Content-Security-Policy" content="script-src 'self' http://www.youtube.com https://kit.fontawesome.com maxcdn.bootstrapcdn.com 'unsafe-inline' 'unsafe-eval';
style-src 'self' https://fonts.googleapis.com maxcdn.bootstrapcdn.com https://kit.fontawesome.com/a076d05399.js 'unsafe-inline'">
what should I do?