ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 753 forks source link

Error: call to eval() blocked by CSP #1037

Open ajira86 opened 9 years ago

ajira86 commented 9 years ago

Hello,

I tried to load a KineticJS game as a FirefoxOS app and get this error

Error: call to eval() blocked by CSP

I want to open this issue to discuss about this subject. Could it be solved easily ? (eval is only used two times in the lib). Is it interesting for you to have a compatibility with FireFoxOS app ?

jadpole commented 9 years ago

I had the same problem. Interestingly, it works when using kinetic.js, but doesn't with the minified version. You should use the non-minified file (at least during development phase), and remove the comments when you want to redistribute your app. I guess the problem is in the minifier, not Kinetic itself. Hoping that helped!