kennethcachia / background-check

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
http://kennethcachia.com/background-check/
MIT License
3.27k stars 282 forks source link

Fix for "tainted canvas" #60

Open homerjam opened 9 years ago

homerjam commented 9 years ago

This fixes this security complaint for background images:

Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

bradcerasani commented 9 years ago

:+1:

@homerjam Probably want to run grunt uglify on your branch to generate a minified version with the fix as well

homerjam commented 9 years ago

Sure, there you go. Thanks

madeleineostoja commented 9 years ago

Any progress on this being merged into master?

lostinpatterns commented 8 years ago

This fixed the issue I was having with images hosted at S3.

janein commented 7 years ago

would love to see this merged!

rodolfogordo10 commented 7 years ago

Last merge was 2014 😭

justrealmilk commented 6 years ago

Where's the give all my money to button

Jiab77 commented 6 years ago

@homerjam Dude! you helped me so much with this PR :+1: Thanks a lot!