Flipboard / react-canvas

High performance <canvas> rendering for React components
BSD 3-Clause "New" or "Revised" License
13.18k stars 919 forks source link

Cross Origin getting Images is not supported! #146

Closed georgeshevtsov closed 8 years ago

georgeshevtsov commented 8 years ago

Image from origin 'http://lorempixel.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.

This is in any browser and it is soo lame.

tuxracer commented 8 years ago

This is an inherent browser limitation with CORS that cannot be addressed by the library. The demos have been updated however https://github.com/Flipboard/react-canvas/commit/5aaf22687f5b35612f3f8c924e17ace8868a95e9 to use a CORS friendly image host (lorempixel.com used to be CORS friendly, but not anymore)