fix(player): add option todisable network in iframes
This commit is contained in:
parent
bddaa503b8
commit
81f272d049
3 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# 7.0.1
|
||||
|
||||
- fix time inputs capturing
|
||||
- add option to disable network tracking inside iframes
|
||||
|
||||
# 7.0.0
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
"lint-staged": "^13.0.3",
|
||||
"prettier": "^2.7.1",
|
||||
"replace-in-files": "^2.0.3",
|
||||
"rollup": "^2.17.0",
|
||||
"rollup": "^2.59.0",
|
||||
"rollup-plugin-terser": "^6.1.0",
|
||||
"semver": "^6.3.0",
|
||||
"ts-jest": "^29.0.3",
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ export interface Options {
|
|||
failuresOnly: boolean
|
||||
ignoreHeaders: Array<string> | boolean
|
||||
capturePayload: boolean
|
||||
captureInIframes: boolean
|
||||
sanitizer?: Sanitizer
|
||||
}
|
||||
|
||||
|
|
@ -89,6 +90,7 @@ export default function (app: App, opts: Partial<Options> = {}) {
|
|||
ignoreHeaders: ['Cookie', 'Set-Cookie', 'Authorization'],
|
||||
capturePayload: false,
|
||||
sessionTokenHeader: false,
|
||||
captureInIframes: true,
|
||||
},
|
||||
opts,
|
||||
)
|
||||
|
|
@ -312,7 +314,6 @@ export default function (app: App, opts: Partial<Options> = {}) {
|
|||
) {
|
||||
const rdo = getXHRRequestDataObject(this)
|
||||
rdo.body = body
|
||||
|
||||
// @ts-ignore ??? this -> XMLHttpRequest
|
||||
return nativeSend.apply(this, arguments)
|
||||
}
|
||||
|
|
@ -336,5 +337,7 @@ export default function (app: App, opts: Partial<Options> = {}) {
|
|||
|
||||
patchWindow(window)
|
||||
|
||||
app.observer.attachContextCallback(app.safe(patchWindow))
|
||||
if (options.captureInIframes) {
|
||||
app.observer.attachContextCallback(app.safe(patchWindow))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue