原文:Electron中Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'".

索引 方法一:去掉Content Security Policy 方法二:不采用内联 CSP为什么禁止执行inline script 方法三:修改CSP,列出允许执行的脚本代码的Hash值 不只是Electron页面,CSP Content Security Policy 对于普通浏览器一样生效。 方法一:去掉Content Security Policy Refused to execute ...

2021-11-14 22:51 0 9245 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM