> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ethioreview.com/llms.txt
> Use this file to discover all available pages before exploring further.

# iframe embed

> Sandboxed iframe for strict CSP environments.

## Snippet

```html theme={null}
<iframe
  src="https://cdn.ethioreview.com/widget-frame.html?publicKey=pk_live_...&businessId=org_123"
  loading="lazy"
  sandbox="allow-scripts allow-same-origin allow-popups"
  style="width:100%;height:420px;border:0;"
></iframe>
```

## Helper (npm)

```typescript theme={null}
import { buildIframeSnippet, attachIframeResizeListener } from "@ethioreview/review-widget-web-iframe";

const html = buildIframeSnippet({
  host: "https://cdn.ethioreview.com",
  publicKey: "pk_live_...",
  businessId: "org_123",
  height: 420,
});
```

## Navigation

Review clicks inside the iframe post a `navigate` message to the parent window. Use `attachIframeResizeListener` for auto-height.

<Warning>
  Include `allow-popups` in the sandbox attribute so review links can open EthioReview in a new tab.
</Warning>

[Web Component →](/integrations/widget/embed-web)
