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 --noEmitpasses with 0 errors- Production Vite build succeeds
- Vite dev server runs normally
localhost:3000returns 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:
Works
Embedded AI Studio Preview:
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