Skip to content
Feature

CSP Allow-list experiment: a new way to fix iframe errors

Amy Reed · 13 May 2026

CSP Allow-list Experiment loads apps in CSP-protected sandboxed iframes. Custom fetch intercepts CSP errors, notifies parent window to prompt domain allow-listing and page refresh.

Simon Willison published an experiment for CSP allow-lists in sandboxed iframes. A custom fetch intercepts CSP errors and relays them to the parent window. The parent prompts users to approve domains and refreshes the page.

Keep reading, free

Join the My AI Guide email to read the full story, what it means for you and the sources. One email every Monday.

One email every Monday. We will send a quick confirm first, so we know it is really you. Privacy Policy.