关于CORS跨域问题的解决办法,运用于Chrome
关于CORS跨域问题的解决办法,运用于Chrome程序背景发生的错误新出现的错误
程序背景
想在本地测试html
发生的错误
index.js:33 Uncaught DOMException: Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported.
在程序中运用了toDataURL导致的如上的错误。
解决方式:添加代码image.setAttribute('crossOrigi
原创
2020-05-15 14:20:38 ·
708 阅读 ·
0 评论