Sandbox Check

What can untrusted HTML reach from your preview iframe?

Chat apps render model-written HTML in sandboxed iframes, and a single attribute decides whether that page is a stranger or your own site. Set up the iframe the way your app does. A probe page inside it tries, harmlessly, to read your cookies, call your API, send data out and move your tab.

Render it like your app does

How the HTML gets in
Sandbox
    Content Security Policy inside the frame
    Your iframe

    Probing…

    The untrusted page

      Test your own app

      Copy the probe as a standalone HTML page and get it rendered in your preview feature: paste it into your app, or ask your model to output it verbatim. It reports from inside the frame what it can reach. Nothing in it changes the host page; the only requests it makes are for a tiny image on this site, to test whether data can get out.

      The short checklist