From c6f716bafa690f35607d31b9c9d38aaa5e2f6bc1 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 24 Dec 2025 16:29:11 -0500 Subject: [PATCH] fix: add crossOrigin to video element to prevent tainted canvas errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Videos from fal.media were causing "Tainted canvases may not be exported" errors when tldraw tried to capture screenshots/exports. Adding crossOrigin="anonymous" allows the browser to request the video with CORS headers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/shapes/VideoGenShapeUtil.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapes/VideoGenShapeUtil.tsx b/src/shapes/VideoGenShapeUtil.tsx index a01286e..8ebd05d 100644 --- a/src/shapes/VideoGenShapeUtil.tsx +++ b/src/shapes/VideoGenShapeUtil.tsx @@ -695,6 +695,7 @@ export class VideoGenShape extends BaseBoxShapeUtil {