Electron app: Uncaught EvalError: 'unsafe-eval'


#1

I am running an electron app with three-js library which works fine. But when adding a third-party font loading module I am getting the following error:

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' app:".

How can I fix this?

Much thanks


Loophole: problems with basic usage
Loophole: problems with basic usage