Blocked a frame with origin issue

I have a Repl here: https://replit.com/@doggyhuang/Partytown-Example#index.html

Can I bypass the DOMException error?

There isn’t a true solution to this issue if you’re not the owner of the site you’re trying to iframe, but you can try to run the site you’re trying to reach through a proxy, and then put it in one.

If you’re the owner of the website you’re trying to iframe, you can insert this code inside the head of your HTML:

<meta http-equiv="Content-Security-Policy" content="frame-ancestors 'self' https://yoursitehere">

Then replace yoursitehere with the site you’re trying to let it iframe.

1 Like