Canvas.getImageData: "Missed Error: SECURITY_ERR: DOM 18 exception"

I read that it is not possible to use getImageData for an image loaded from another domain. Any trick to overcome this?

thanks

+4
source share
2 answers

You can make a proxy script in your domain, which forwards the image from another domain.

+6
source

Well, if you know something about python, try python -m SimpleHTTPServer in your topic, change the name of the test html file to index.html and enter local:8000 to start the test

+1
source

Source: https://habr.com/ru/post/1316081/


All Articles