adding conditional to prevent embedprovider handler firing
This commit is contained in:
parent
8e40e98b6a
commit
8c769140bb
|
@ -12,6 +12,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleMessage(event) {
|
function handleMessage(event) {
|
||||||
|
if (event.data?.type !== "bb-parent-window-event") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Validate the event origin to ensure it's coming from a trusted source
|
// Validate the event origin to ensure it's coming from a trusted source
|
||||||
// Allow different subdomains but must match TLD
|
// Allow different subdomains but must match TLD
|
||||||
const appOrigin = extractDomainFromUrl(window.location.origin)
|
const appOrigin = extractDomainFromUrl(window.location.origin)
|
||||||
|
|
Loading…
Reference in New Issue