'unsafe-eval' is not an allowed source of script
dutu opened this issue · comments
I'm trying to use webix in a Meteor application deployed on Heroku.
Following error is triggered (and nothing displayed in the browser)
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' 'unsafe-inline'"
Note I have renamed : webix.js
to _webix.js
Did you solve this?
@PhilAndrew issue is not resolved, but to work around the error I have used
BrowserPolicy.content.allowEval();
in my Meteor app
You can set "webix.env.strict" to true. This ahould solve the problem with 'unsafe-eval'
Thanks!