我正在开发一个chrome扩展,它确实在本地工作,但当作为一个chrome扩展启动时,它会显示以下错误:
Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' https://apis.google.com". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or
我正在使用,并想了解是否可以在同一个脚本-scr中添加两个关键字,即“不安全-内联”和“不安全-eval”,并使它们工作?还是我需要创建两个不同的脚本-scr?我必须使用几个源代码,其中一些是需要eval()的,另一些则是内联脚本。module.exports = { {
resolve: `gatsby-plugin-csp`,// In your gatsby-c