裁剪远程地址图片会报错
halfsouli opened this issue · 1 comments
halfsouli commented
Error in v-on handler: "SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported."
found in
---> at node_modules/_vue-img-cutter@2.2.4@vue-img-cutter/src/components/ImgCutter.vue
acccccccb commented
@halfsouli crossOrigin 设置为 true, crossOriginHeader 设置为 * ,同时图片服务器需要将 Access-Control-Allow-Origin 设置为 *