add crossOrigin = anonymous attribute to konva image

This commit is contained in:
Mary Hipp 2023-05-23 10:51:00 -04:00 committed by psychedelicious
parent 650d69ef5b
commit 454ba9b893

View File

@ -8,7 +8,7 @@ type IAICanvasImageProps = {
};
const IAICanvasImage = (props: IAICanvasImageProps) => {
const { url, x, y } = props;
const [image] = useImage(url);
const [image] = useImage(url, 'anonymous');
return <Image x={x} y={y} image={image} listening={false} />;
};