Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] Uncaught DOMException when website is being loaded on cross-origin iframe #617

Open
andresusanto opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@andresusanto
Copy link

andresusanto commented Aug 22, 2024

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.:

image

This is where the exception occured:
image

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:

Screenshot 2024-08-22 at 2 16 28 PM

that will open an iframe linking to a page with the partytown.

Browser Info

Chrome

Additional Information

No response

@andresusanto andresusanto added the bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant