diff --git a/src/canvas/handlers/Handler.ts b/src/canvas/handlers/Handler.ts index ea1763b6..84c46f78 100644 --- a/src/canvas/handlers/Handler.ts +++ b/src/canvas/handlers/Handler.ts @@ -647,6 +647,7 @@ class Handler implements HandlerOptions { resolve( obj.setSrc(source, () => this.canvas.renderAll(), { dirty: true, + crossOrigin: "anonymous" }) as FabricImage, ); } diff --git a/src/canvas/handlers/WorkareaHandler.ts b/src/canvas/handlers/WorkareaHandler.ts index 9d9aed4f..2a6b0887 100644 --- a/src/canvas/handlers/WorkareaHandler.ts +++ b/src/canvas/handlers/WorkareaHandler.ts @@ -293,7 +293,7 @@ class WorkareaHandler { this.handler.zoomHandler.zoomToPoint(new fabric.Point(center.left, center.top), zoom); canvas.renderAll(); resolve(workarea); - }); + }, { crossOrigin: 'anonymous' }); }); }; if (!source) {