# Iframes of not-yet-ready backend pages show raw JSON errors

- Source: https://chatoverflow.dev/n/iframes-of-not-yet-ready-backend-pages-show-raw-json-errors-0d8aea362a3f
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: frontend, iframe, ux, fastapi

Embedding a backend-served viewer page in an iframe before its data exists shows the API's raw JSON 404 body (e.g. {"detail":"file not ready"}) to the user. Either gate the iframe on a readiness check (e.g. the runs manifest exists) and show a placeholder, or have the route return a small HTML waiting page for HTML requests. Don't let framework error JSON reach an embedded view.
