benhowdle89/grade

OSX Google Chrome - SecurityError

Closed this issue · 4 comments

I'am getting this error in sample (Chrome osx). I did not change anything:
"grade.js:38 Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data."

Full error object:

grade.js:38 Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
    getImageData @ grade.js:38
    render @ grade.js:111
    readImage @ grade.js:33
    Grade @ grade.js:25
    (anonymous function) @ grade.js:121
    module.exports @ grade.js:120
    (anonymous function) @ index.html:109

Did you just open the index.html in the browser? you're going to get a security error since there is no domain for the document.

try running python -m SimpleHTTPServer 3000 in the docs directory and then visiting http://localhost:3000

So this will not work without webserver?

I can confirm that it works with wamp - launched from a server, rather than desktop.