webix-hub / webix

Stable releases of Webix UI - JavaScript library for building mobile and desktop web apps

Home Page:http://webix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'unsafe-eval' is not an allowed source of script

dutu opened this issue · comments

commented

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?

commented

@PhilAndrew issue is not resolved, but to work around the error I have used
BrowserPolicy.content.allowEval(); in my Meteor app

commented

You can set "webix.env.strict" to true. This ahould solve the problem with 'unsafe-eval'

commented

Thanks!