[🐞] Uncaught DOMException
when website is being loaded on cross-origin iframe
#617
Labels
bug
Something isn't working
Describe the bug
Hi partytown team,
We have a web page using partytown that is accessed by third-party website using iframe.
We noticed that PartyTown throws
Uncaught DOMException: Failed to read a named property 'dispatchEvent' from 'Window': Blocked a frame with origin "https://zip.co" from accessing a cross-origin frame.
:This is where the exception occured:
![image](https://private-user-images.githubusercontent.com/7076809/360283291-60a804fe-7ef8-433b-abbf-22b3bd13a859.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMzI3NjksIm5iZiI6MTczOTAzMjQ2OSwicGF0aCI6Ii83MDc2ODA5LzM2MDI4MzI5MS02MGE4MDRmZS03ZWY4LTQzM2ItYWJiZi0yMmIzYmQxM2E4NTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMTYzNDI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjA2NThhNmQ3OTYzOGEwZmZkMjNjMWJiNTYwNmIwZTlhZTVhYzFiMTVkYjVlMDNjZjU0OTMxNGQ3Y2Q5ZjY1OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.PlkPfLettzh2xNYGJzXZ_YLiSOWy7Bsjl3gIk22Hb7U)
Unfortunately, we don't have any control over the third-party website permission that accesses our page. is there a way to use partytown for our use-case?
Reproduction
https://www.underarmour.com.au/en-au/p/tops/mens_ua_iso-chill_compression_tank/1365225.html?dwvar_1365225_color=001&start=0&breadCrumbLast=Compression%20Gear%3A%20Performance%20Baselayer
Steps to reproduce
Open the page and click this
or from $10/week with Zip
:that will open an iframe linking to a page with the partytown.
Browser Info
Chrome
Additional Information
No response
The text was updated successfully, but these errors were encountered: