[英]canvas.getImageData: “Uncaught Error: SECURITY_ERR: DOM Exception 18”
I've read that it is not possible to use getImageData on an image loaded from a different domain. 我读过,不可能在从其他域加载的图像上使用getImageData。 Any trick to overcome this? 有什么技巧可以克服吗?
Thanks 谢谢
您可以在您的域上制作一个代理脚本,以转发来自其他域的图像。
好吧,如果您了解python的知识,请在终端中尝试python -m SimpleHTTPServer
,将测试html文件名更改为index.html
并输入local:8000
即可开始测试
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.