How to load cross-origin artwork into an exportable canvas
Answer in brief
Request the image using CORS and configure the serving origin to allow the requesting page. Set crossOrigin before assigning the image URL, then wait for a successful load before drawing.
Export a composition with a remote stamp
Load the stamp with crossOrigin="anonymous" and confirm the response includes an appropriate Access-Control-Allow-Origin header. Draw it onto a fresh canvas and call toBlob(). Test the exact CDN URL used by the editor.
Isolate the asset that taints a composition
Draw the exported layers one at a time on a fresh test canvas and try to read it after each addition. A locally drawn label may succeed while a remote decorative stamp makes readback fail. Removing the stamp from a displayed composition does not restore the existing canvas bitmap's origin-clean state.
Sources
- [1] Use cross-origin images in a canvas - HTML — MDN Web Docs, accessed November 23, 2026
Frequently asked questions
Why is a visible image still blocking export?
A browser can display some cross-origin images while restricting pixel readback after drawing them onto a canvas.