I am working on creating a Chrome Extension of an Image Cropping Widget. The code of my popup.html is as follows:
popup.html
You have to add content_security_policy to your manifest.json file:
content_security_policy
manifest.json
"content_security_policy": "script-src 'self' 'sha256-B+Qe/KNUDtGDd/m1g5ycAq1DgpLs9ubKmYTlOHBogC8='; object-src 'self'"
You will find the hash from console.