I have two domains, one which contains an image and another which is trying to access this picture. The following works for loading the image:
image = new Image();
image.src = "someotherdomain.com/picture.png";
However, I would like to send back some information as well. I cannot use AJAX due to Same-Origin-Policy. This is what I am trying to do:
image = new Image();
image.src = "someotherdomain.com/picture.png";
console.log(image.message); // How can I receive the message from the other server to here?
I cannot enable CORS or any of that.