Repository navigation
docs(hypercanvas-preview): add FAQ to README - #1
Open
garikbesson wants to merge 1 commit into
Open
garikbesson wants to merge 1 commit into
garikbesson wants to merge 1 commit into
Conversation
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.