Prompt
why is headless cms preview not showing
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
A headless CMS preview usually doesn’t show because one of these pieces isn’t wired up correctly:
Common causes
-
Preview mode isn’t enabled
- Your frontend may not be entering preview/draft mode.
- Check whether the preview URL is being opened with the correct query params or cookies.
-
Preview API/endpoint is wrong
- The CMS preview URL may point to the wrong route in your app.
- Make sure the preview endpoint actually exists and returns the draft content.
-
Authentication/token issue
- The CMS often requires a preview token or secret.
- If it’s missing, expired, or incorrect, you’ll only see published content or nothing at all.
-
Frontend still fetching published content
- Your data-fetching logic may always call the public/published API instead of the preview/draft API.
- Confirm your query switches based on preview mode.
-
Draft content not published/available
- Some CMSs only show preview for content that has been saved as draft and supports preview.
- If the content isn’t in a draft state, preview won’t differ from live.
-
Cache/CDN is interfering
- Cached pages or CDN layers can serve stale content.
- Preview routes should usually bypass caching.
-
Slug/route mismatch
- The preview URL may be trying to load the wrong page slug or identifier.
- Verify the path matches the content entry.
-
Access rules/webhooks misconfigured
- Preview can fail if the CMS webhook, access policy, or API permissions aren’t set up right.
Quick checks
- Open the preview URL directly and inspect the query string/cookies.
- Check browser dev tools:
- Network tab for API calls
- Response status codes
- Whether draft content is returned
- Log whether preview mode is detected in your frontend.
- Compare the data source used in preview vs live mode.
If you want, I can help debug it faster if you tell me:
- Which CMS you’re using
- Which frontend framework
- How preview is configured
- Any error message or what happens instead of the preview
Brands