@oxvo/browser 7.3.0 → 7.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/cjs/entry.js +1961 -377
- package/dist/cjs/entry.js.map +1 -1
- package/dist/cjs/index.js +1955 -377
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/main/app/canvas.d.ts +5 -0
- package/dist/cjs/main/app/cross_domain_iframe.d.ts +44 -0
- package/dist/cjs/main/app/debugRedaction.d.ts +11 -0
- package/dist/cjs/main/app/index.d.ts +70 -14
- package/dist/cjs/main/app/messages.gen.d.ts +2 -0
- package/dist/cjs/main/app/session.d.ts +1 -0
- package/dist/cjs/main/entry.d.ts +5 -5
- package/dist/cjs/main/index.d.ts +6 -1
- package/dist/cjs/main/modules/analytics/index.d.ts +5 -0
- package/dist/cjs/main/singleton.d.ts +5 -0
- package/dist/cjs/package.json +1 -0
- package/dist/lib/entry.js +1961 -377
- package/dist/lib/entry.js.map +1 -1
- package/dist/lib/index.js +1955 -377
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/main/app/canvas.d.ts +5 -0
- package/dist/lib/main/app/cross_domain_iframe.d.ts +44 -0
- package/dist/lib/main/app/debugRedaction.d.ts +11 -0
- package/dist/lib/main/app/index.d.ts +70 -14
- package/dist/lib/main/app/messages.gen.d.ts +2 -0
- package/dist/lib/main/app/session.d.ts +1 -0
- package/dist/lib/main/entry.d.ts +5 -5
- package/dist/lib/main/index.d.ts +6 -1
- package/dist/lib/main/modules/analytics/index.d.ts +5 -0
- package/dist/lib/main/singleton.d.ts +5 -0
- package/dist/types/main/app/canvas.d.ts +5 -0
- package/dist/types/main/app/cross_domain_iframe.d.ts +44 -0
- package/dist/types/main/app/debugRedaction.d.ts +11 -0
- package/dist/types/main/app/index.d.ts +70 -14
- package/dist/types/main/app/messages.gen.d.ts +2 -0
- package/dist/types/main/app/session.d.ts +1 -0
- package/dist/types/main/entry.d.ts +5 -5
- package/dist/types/main/index.d.ts +6 -1
- package/dist/types/main/modules/analytics/index.d.ts +5 -0
- package/dist/types/main/singleton.d.ts +5 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -29,6 +29,38 @@ await browser.start({
|
|
|
29
29
|
});
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
## Cross-Origin Iframes
|
|
33
|
+
|
|
34
|
+
Cross-origin iframe capture is opt-in on both pages. The top-level tracker must
|
|
35
|
+
allowlist every exact child origin, and each child tracker must name its exact
|
|
36
|
+
parent origin:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
// Top-level page at https://www.example.com
|
|
40
|
+
const parentBrowser = new Browser({
|
|
41
|
+
siteKey: 'ws_live_01HZX8M4B3',
|
|
42
|
+
crossdomain: {
|
|
43
|
+
enabled: true,
|
|
44
|
+
childOrigins: ['https://checkout.example.com'],
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
await parentBrowser.start();
|
|
48
|
+
|
|
49
|
+
// Embedded page at https://checkout.example.com
|
|
50
|
+
const childBrowser = new Browser({
|
|
51
|
+
siteKey: 'ws_live_01HZX8M4B3',
|
|
52
|
+
crossdomain: {
|
|
53
|
+
enabled: true,
|
|
54
|
+
parentDomain: 'https://www.example.com',
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
await childBrowser.start();
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Wildcards and opaque origins are rejected. Parent and child pages must use the
|
|
61
|
+
same current tracker release; legacy and mixed cross-frame protocols fail
|
|
62
|
+
closed.
|
|
63
|
+
|
|
32
64
|
## Common Runtime Calls
|
|
33
65
|
|
|
34
66
|
```ts
|