小工具知识网

当前位置: 首页 > 行业知识 > vue报错Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed...

行业知识

vue报错Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed...

2026-10-26 13:53:43 来源:互联网转载

electron index.php/tags-602.html" >使用sequelize报错Uncaught EvalError: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “script-src ‘self’”.

()

解决

Electron中开启了内容安全策略(CSP)

()

把html中meta标签,增加’unsafe-eval’

 

改为



上一篇:电脑怎么备案服务器?

下一篇:阿里云服务器apache绑定域名