Skip to content

Commit

Permalink
Merge pull request #153 from openreplay/nick-delirium-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
estradino authored Oct 2, 2024
2 parents 80d9561 + b2f118e commit 55428b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/en/tutorials/crossdomain-iframe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const tracker = new OpenReplay({
});
```

Then initialize the tracker inside the desired iFrame and add `crossdomain.parentDomain` to its constructor:
Then initialize the tracker instance inside the desired iFrame and add `crossdomain.parentDomain` to its constructor:

```js
const tracker = new OpenReplay({
Expand All @@ -39,10 +39,13 @@ const tracker = new OpenReplay({
// Which means that child window will send messages to all domains inside the browser window
// Consult your CSP settings to ensure that '*' is allowed or specify the parent domain
parentDomain: '*',
enabled: true
}
});
```

Please note that if you're using tracker snippet, we recommend using regular (openreplay.js) instance instead of `openreplay-assist.js` for child iframes (since assist session should connect to parent instance only).

## Have questions?

If you encounter any issues, connect to our [Slack](https://slack.openreplay.com) or check out our [Forum](https://forum.openreplay.com) and get help from our community.
If you encounter any issues, connect to our [Slack](https://slack.openreplay.com) or check out our [Forum](https://forum.openreplay.com) and get help from our community.

0 comments on commit 55428b4

Please sign in to comment.