We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4f8aa0 + f5a6414 commit 4c2f99bCopy full SHA for 4c2f99b
packages/webui/src/client/ui/PreviewPopUp/Previews/IFramePreview.tsx
@@ -16,7 +16,8 @@ export function IFramePreview({ content }: IFramePreviewProps): React.ReactEleme
16
17
const onLoadListener = useCallback(() => {
18
if (content.postMessage) {
19
- iFrameElement.current?.contentWindow?.postMessage(content.postMessage)
+ const url = new URL(content.href)
20
+ iFrameElement.current?.contentWindow?.postMessage(content.postMessage, url.origin)
21
}
22
}, [])
23
0 commit comments