autophagy / twitter-bg-restorer

Chrome & Firefox extension for setting custom image/colour backgrounds on Twitter
MIT License
6 stars 7 forks source link

Cross-Origin Resource Sharing policy error #12

Closed autophagy closed 8 years ago

autophagy commented 8 years ago

When trying to convert an image from a URL to base64 the browser can throw a "Image from origin has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access."

A better way of doing this would be allow a user to upload an image from their hard drive rather than a URL, so there are no cross origin issues.