I recently updated to 4.86.0-stable self-hosted, and I am trying to setup embedded apps. I am working to follow the instructions found here: Embed a published app | Retool Docs
I have added the frame-ancestors and frame-src to the list using our subdomain and domain in the format of https://subdomain.domain.com. I have also made sure my two apps I am trying to connect have their packages updated. I have waited more than 30 minutes. I have used the published url as well is running in a published app.
Despite that, I am still receiving errors in the dev tools and the embedded app is fully blank. MINT is the app being embedded.
- Access to CSS stylesheet at 'https://subdomain.domain.com/assets_vjs/main-CYEVdsHA.css' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- mint:151 Access to script at 'https://subdomain.domain.com/assets_vjs/routeAssumptions-DSu9wL8k.js' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- mint:1 Access to script at 'https://subdomain.domain.com/assets_vjs/src-index--knHL1lI.js' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- mint:1 Access to script at 'https://subdomain.domain.com/assets_vjs/main-CPGdI1PS.js' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- mint:168 Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
I am out of ideas about how to make this work, is there something else Iām missing?
Summary
On self-hosted Retool 4.86.0-stable, embedding a published new React App Builder app ('MINT') renders fully blank, throwing CORS 'origin null' errors and 'Failed to read localStorage... the document is sandboxed and lacks the allow-same-origin flag', even after adding frame-ancestors/frame-src CSP rules.
AI Response
This is expected behavior, not a misconfiguration. Published new app builder apps on self-hosted deployments are served inside a CSP sandbox that intentionally omits allow-same-origin for security, and nested iframes inherit that flag ā which produces the opaque 'null' origin, the blocked asset requests, and the localStorage SecurityError. Adding frame-src/frame-ancestors is the only exposed CSP control and cannot override the sandbox directive, so it won't resolve the blank render on its own. Retool staff have confirmed the path forward is hostname-based serving for self-hosted, which allows embedded React apps to work once configured; note that apps served on a custom domain run in iframe mode and require moving to hostname-based serving.
Sources
React App Builder: iframes inherit the app sandbox without allow-same-origin, so embedded dashboards render blank even with a custom frame-src CSP rule
A near-identical self-hosted 4.86.0 report where Retool staff confirm published React apps run in a sandbox without allow-same-origin and point to hostname-based serving as the resolution.
New React App Builder Iframe CSP Settings
Solved thread where staff introduce the customizable frame-src CSP allowlist for new builder apps, confirming it's the intended (but sandbox-limited) mechanism for permitting external iframe domains.
The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a
,
, or
. Or by marking this post as the "Solution"! Let us know if you have any feedback here. 