diff --git a/packages/tldraw/src/lib/shapes/image/ImageShapeUtil.tsx b/packages/tldraw/src/lib/shapes/image/ImageShapeUtil.tsx index bc31e6338..131b339cc 100644 --- a/packages/tldraw/src/lib/shapes/image/ImageShapeUtil.tsx +++ b/packages/tldraw/src/lib/shapes/image/ImageShapeUtil.tsx @@ -109,7 +109,6 @@ export class ImageShapeUtil extends BaseBoxShapeUtil { setLoadedSrc(url) } image.crossOrigin = 'anonymous' - image.referrerPolicy = 'strict-origin-when-cross-origin' image.src = url return () => { @@ -158,13 +157,15 @@ export class ImageShapeUtil extends BaseBoxShapeUtil { <> {showCropPreview && (
-
@@ -175,13 +176,13 @@ export class ImageShapeUtil extends BaseBoxShapeUtil { style={{ overflow: 'hidden', width: shape.props.w, height: shape.props.h }} >
-
{this.isAnimated(shape) && !shape.props.playing && ( diff --git a/packages/tldraw/src/lib/ui/context/asset-urls.tsx b/packages/tldraw/src/lib/ui/context/asset-urls.tsx index 41c2d8029..ec15eb0af 100644 --- a/packages/tldraw/src/lib/ui/context/asset-urls.tsx +++ b/packages/tldraw/src/lib/ui/context/asset-urls.tsx @@ -18,13 +18,11 @@ export function AssetUrlsProvider({ useEffect(() => { for (const src of Object.values(assetUrls.icons)) { const image = Image() - image.referrerPolicy = 'strict-origin-when-cross-origin' image.src = src image.decode() } for (const src of Object.values(assetUrls.embedIcons)) { const image = Image() - image.referrerPolicy = 'strict-origin-when-cross-origin' image.src = src image.decode() } diff --git a/packages/tldraw/src/lib/utils/export/export.ts b/packages/tldraw/src/lib/utils/export/export.ts index 0571c0593..72ef8e1bd 100644 --- a/packages/tldraw/src/lib/utils/export/export.ts +++ b/packages/tldraw/src/lib/utils/export/export.ts @@ -66,7 +66,6 @@ export async function getSvgAsImage( resolve(null) } - image.referrerPolicy = 'strict-origin-when-cross-origin' image.src = svgUrl })