Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Google Chrome - SecurityError #5

Closed
MrSrsen opened this issue Aug 22, 2016 · 4 comments
Closed

OSX Google Chrome - SecurityError #5

MrSrsen opened this issue Aug 22, 2016 · 4 comments

Comments

@MrSrsen
Copy link

MrSrsen commented Aug 22, 2016

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
@kgengler
Copy link

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

@MrSrsen
Copy link
Author

MrSrsen commented Aug 22, 2016

So this will not work without webserver?

@kgengler
Copy link

@danielfonda
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants