拒绝加载脚本“https://apis.google.com/js/api.js”,因为它违反了以下内容安全策略指令

სალ*_*იძე 8 javascript api google-chrome-extension

我想在我的 popup.html 中添加 google api 但 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.
Run Code Online (Sandbox Code Playgroud)

有人能帮助我吗?在清单中我添加了

"content_security_policy": "script-src 'self' https://apis.google.com/js/api.js; object-src 'self'",
Run Code Online (Sandbox Code Playgroud)

但它不起作用。请帮助我,提前致谢