简体   繁体   English

canvas.getImageData:“未捕获的错误:SECURITY_ERR:DOM异常18”

[英]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.

相关问题 DOM异常:使用getImageData时,SECURITY_ERR(18) - DOM Exception: SECURITY_ERR (18) when using getImageData 未捕获错误:SECURITY_ERR:DOM异常18当我尝试设置cookie时 - Uncaught Error: SECURITY_ERR: DOM Exception 18 when I try to set a cookie SSE未捕获错误:SECURITY_ERR:DOM异常18,其中服务器提供服务器发送事件(SSE) - SSE Uncaught Error: SECURITY_ERR: DOM Exception 18 with a server that provides Server Sent Events (SSE) 未捕获的错误:SECURITY_ERR:DOM异常18在WebGL中使用Three.js应用纹理时 - Uncaught Error: SECURITY_ERR: DOM Exception 18 When applying textures with Three.js in WebGL 内部图像中的Android getImageData()-SECURITY_ERR:DOM异常18 - Android getImageData() from the inner image - SECURITY_ERR: DOM Exception 18 Awesomium JavaScript错误:SECURITY_ERR:DOM异常18 - Awesomium javascript error: SECURITY_ERR: DOM Exception 18 在使用canvas.toDataURL(“image / png”)时,仅在Safari中使用SECURITY_ERR:DOM异常18 - SECURITY_ERR: DOM Exception 18 ONLY IN Safari when using canvas.toDataURL(“image/png”) SECURITY_ERR:调用Canvas的toDataURL方法时,DOM异常18 - SECURITY_ERR: DOM Exception 18 when invoking toDataURL method of the Canvas Chome 中的 HTML5 视频,SECURITY_ERR:DOM 异常 18 - HTML5 Video in Chome, SECURITY_ERR: DOM Exception 18 SECURITY_ERR:Web Workers的DOM异常18 - SECURITY_ERR: DOM Exception 18 with Web Workers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM