Skip to content

docs(hypercanvas-preview): add FAQ to README - #1

Open
garikbesson wants to merge 1 commit into
hyperide:mainfrom
garikbesson:docs/hypercanvas-preview-readme-faq
Open

garikbesson wants to merge 1 commit into
hyperide:mainfrom
garikbesson:docs/hypercanvas-preview-readme-faq

Conversation

@garikbesson

Copy link
Copy Markdown

Summary
Adds an FAQ entry explaining that a blank preview is often caused by the dev app blocking iframe embedding (X-Frame-Options, CSP frame-ancestors, or similar), and how to relax that in development so the VS Code webview can load the preview.

Context
I tested the extension on a Next.js project and saw a white screen in the preview. It turned out to be embedding restrictions from the app / dev server headers, not an obvious extension bug. The README didn’t call this out, so I documented it to save others the same debugging loop.

Changes
README FAQ: white preview → check iframe embedding / CSP / frame-ancestors; allow framing in dev or allow the preview origin.

Testing
Confirmed the scenario on a Next.js dev setup after adjusting headers for development.
Checked README formatting in the GitHub markdown preview.

@alex-mextner

Copy link
Copy Markdown
Member

Reviewed properly (verified against current main, not just the stale diff): this is exactly a 6-line, doc-only FAQ addition, no other drift. Technically confirmed correct — the extension currently has no proxy/header-stripping logic for the user's dev server response inside the preview iframe, so a dev server sending X-Frame-Options/CSP frame-ancestors genuinely does produce a blank preview, and this FAQ entry correctly diagnoses and fixes that. Approved and queued to merge — resolving a tooling mismatch on our merge gate (it's tuned for the main monorepo, not this mirror) before it lands. Thanks for the writeup and sorry for the long silence, @garikbesson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants