【发布时间】:2020-12-05 04:38:02
【问题描述】:
我是 electron 的新手,我在我打开的每个 BrowserWindow 的控制台(DevTools)中都得到了这个:
webFrame.executeJavaScript was called without worldSafeExecuteJavaScript enabled. This is considered unsafe. worldSafeExecuteJavaScript will be enabled by default in Electron 12.
我还收到了另一个安全警告,那就是:
Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
我不知道我到底做错了什么……!!
【问题讨论】:
标签: javascript electron