From 9296e6bee84d4a3ca80c7b0d3cad5980f83a4978 Mon Sep 17 00:00:00 2001 From: garikbesson Date: Wed, 25 Mar 2026 00:21:52 +0000 Subject: [PATCH] docs(hypercanvas-preview): add FAQ to README --- vscode-extension/hypercanvas-preview/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vscode-extension/hypercanvas-preview/README.md b/vscode-extension/hypercanvas-preview/README.md index 0be82971..1612a557 100644 --- a/vscode-extension/hypercanvas-preview/README.md +++ b/vscode-extension/hypercanvas-preview/README.md @@ -82,6 +82,12 @@ Recommended: **GLM via Z.ai** — flat-rate starting from $10/mo. - VS Code 1.74 or later - A React project (JSX/TSX) +## FAQ + +### Preview shows a white screen instead of my component + +Check your app’s configuration for **iframe embedding** (for example `X-Frame-Options`, `Content-Security-Policy` `frame-ancestors`, or framework-specific headers). If the dev server blocks being framed, the preview cannot render. **Allow embedding in development** (for example relax or omit those headers for `NODE_ENV=development`, or add your preview origin to `frame-ancestors`) so the VS Code webview can load the iframe. + ## Development See [DEVELOPMENT.md](https://github.com/hyperide/hyper-ext/blob/main/DEVELOPMENT.md) for architecture details, build instructions, and contribution guide.