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.
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.