electron 使用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’
<meta http-equiv="Content-Security-Policy" content="script-src 'self' ">
改为
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-eval'">