- 博客(1)
- 收藏
- 关注
原创 关于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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人