diff --git a/apps/x/apps/renderer/src/components/html-file-viewer.tsx b/apps/x/apps/renderer/src/components/html-file-viewer.tsx index 10f8be9e..994ab73e 100644 --- a/apps/x/apps/renderer/src/components/html-file-viewer.tsx +++ b/apps/x/apps/renderer/src/components/html-file-viewer.tsx @@ -124,6 +124,14 @@ export function HtmlFileViewer({ path }: HtmlFileViewerProps) { ) } + // We use `srcDoc` here (not `src=app://workspace/`) so the iframe + // gets a null origin with no base URL. Trade-off: relative assets inside + // the file — ``, ``, + // `