CodeSandbox Preview Not Showing for Private Sandbox

Share
Workaround available Web Updated November 14, 2026How we research

Quick answer

Private VM Sandboxes still need a preview token, and public previews are not supported for private VMs. Setting the sandbox privacy to Unlisted often fixes it.

Most likely fix: Change privacy to Unlisted

How to fix it

Try these in order — the most common fix is first.

  1. 1. Change privacy to Unlisted

    1. Open the VM Sandbox in the editor
    2. Open its privacy settings
    3. Switch from Private to Unlisted
    4. Reload the preview link
    Did this fix it?
  2. 2. Share through workspace access instead

    1. Invite the person to your workspace so they can open the private sandbox
    Did this fix it?

Symptoms

The preview URL returns an error or access page for people you share it with.

Why it happens

  • Private VM Sandbox shared as a public preview link
  • Viewer not signed in or without access to the workspace

This guide also covers

  • codesandbox preview not working
  • codesandbox private sandbox preview
  • codesandbox preview token

Still not working?

If CodeSandbox keeps failing, you're not alone. See every CodeSandbox problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All missing or lost data guides →

Other CodeSandbox errors

All 10 CodeSandbox errors and fixes →