'Refused to load the script 'https://apis.google.com/js/api.js' because it violates the following Content Security Policy directive
I want to add google api in my popup.html but there is an error in cosole
Refused to load the script 'https://apis.google.com/js/api.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://cdn.jsdelivr.net". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
can someone help me please? in manifest i have added
"content_security_policy": "script-src 'self' https://apis.google.com/js/api.js; object-src 'self'",
but it does not work. please help me, thanks in advance
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|