I'm creating a webpage that takes an image from another website, one that I do not own, and removes a solid colour background. To achieve this, I'm using MarvinJ's image.setColorToAlpha(0,0);
. This is working well enough with a local copy of the image but when I try to use the image url it gives me a CORS error
Reason: CORS header ‘Access-Control-Allow-Origin’ missing
The image allows me to place it on the webpage but not access it with MarvinJ.
I have tried following this to store it locally but it gives me the same error and I don't really know doing with it anyway.
Is there a way that I can somehow store the image locally and then use that copy? I am looking to this through the browser if possible.