AI Studio embedded Preview blank, but direct Preview URL works

I’m having an issue with Google AI Studio Build where my React/Vite application works correctly through the direct Preview URL, but the embedded Preview inside AI Studio remains completely blank white.

I’ve verified the application itself is healthy:

  • Sandbox initializes successfully
  • tsc --noEmit passes with 0 errors
  • Production Vite build succeeds
  • Vite dev server runs normally
  • localhost:3000 returns HTTP 200
  • Application modules load successfully with correct JavaScript MIME types
  • No React/runtime exceptions
  • Development PWA service worker is disabled
  • Direct Preview URL renders the application normally

The embedded Preview behaves differently.

Diagnostics show that embedded Preview requests are redirected:

HTTP 302 -> /__cookie_check.html

In the embedded iframe context, the AI Studio authentication/cookie-check document loads instead of the application’s index.html, so the React #root never loads.

When I open the direct ais-dev-...run.app Preview URL in a normal top-level browser tab, authentication completes and the application renders correctly.

Current behavior:

Direct Preview: :white_check_mark: Works
Embedded AI Studio Preview: :cross_mark: Blank white
React/runtime errors: None
Build errors: None

This appears to be an issue with the AI Studio embedded Preview authentication/cookie bridge, not the application itself.

Could someone from the AI Studio team investigate the embedded iframe /__cookie_check.html authentication flow and why the embedded Preview cannot complete the same authentication that works in a top-level tab?

I can provide my Applet ID, screenshots, console output, and additional diagnostics if needed.

Browser: Chrome

Hi @TheTimeis538, Could you please test opening your app in an Incognito browser window to see if the embedded preview loads? If you are still seeing the errors, please share a screenshot of the issue along with your Applet ID and Project ID via direct message.

the preview is now working. thank you