From 6f7f28408d93a19f5344b4d700152fd19c658c1a Mon Sep 17 00:00:00 2001 From: Ruslan Date: Thu, 23 Jul 2026 12:24:20 +0000 Subject: [PATCH] fix: iframe probe accepts only 2xx (reject portal 404 with X-Frame-Options) --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 38b5baa..ecbdbb5 100644 --- a/app/main.py +++ b/app/main.py @@ -1688,7 +1688,7 @@ def session_view_page(session_id: str, request: Request, user: User = Depends(re if (data.ready) {{ try {{ const probe = await fetch(iframeSrc, {{method:'HEAD', credentials:'include'}}); - if (probe.status < 500) {{ + if (probe.status >= 200 && probe.status < 300) {{ const f = document.getElementById('app-frame'); f.src = iframeSrc; f.style.display = '';