#Iframe Sandbox Blocking Scripts in Editor (Wix Blocks)

1 messages · Page 1 of 1 (latest)

granite lodge
#

Hello all, I have ran into an issue with my Wix Blocks app and hoping someone can shed some light on it.

I have an iframe layer in my widget that works perfectly in Preview and on the Live site, but it gets completely blocked inside the site editor or the Wix blocks editor, the console is throwing this error: "Blocked script execution... because the iframe is sandboxed in the editor and the 'allow-scripts' permission is not set."

The iframe is just loading a standard page I built on Next.js. Since Wix is blocking the scripts, the Next.js chunks can't load, so the widget just loads forever while the users are editing.

I can see in the change logs that the editor sandbox was added at the start of 2025 but it was working just fine until a week ago, and it started happening suddenly without us changing any code on our end. Has something changed with the Editor security policies? We really need this to render so users can actually see what they are adding.

coral matrix
# granite lodge Hello all, I have ran into an issue with my Wix Blocks app and hoping someone c...

That all started from the beginning of Dec. First with sandboxing of custom elements in preview and editor and removing “allow-same-origin”.

Now with iFrames.

Seems like for iFrames they removed “allow-scripts”. 🤷

You can try selfhosted iFrames. I was told:
“This applies only to Custom Elements in the Editor/Preview. Custom Elements are rendered inside a Wix-owned iframe on a Wix domain and are therefore sandboxed. If you render your content inside an iframe that you host, it will work normally and is not affected by this policy.”

https://developers.wixanswers.com/kb/en/article/custom-element-sandbox

granite lodge
#

@coral matrix Thank you for the info, is there any change log regarding this? Im just creating an iframe layer in Wix blocks and passing the address of my page