크로스 오리진 속성 추가
How to fix getImageData() error The canvas has been tainted by cross-origin data?
My code is working very well on my localhost but it is not working on the site. I got this error from the console, for this line .getImageData(x,y,1,1).data: Uncaught SecurityError: Failed to exe...
stackoverflow.com
let image = new Image();
// image.src = ...;
image.crossOrigin = `Anonymous`;
'FE > Canvas' 카테고리의 다른 글
[ CANVAS ] 좋은 데이터 시각화 라이브러리 (0) | 2024.07.10 |
---|---|
[ CANVAS ] 이미지 밝기 획득 (1) | 2023.06.09 |