Onboarding: set https cookie + auto redirect

This commit is contained in:
Aaron
2025-12-13 14:07:56 -05:00
parent 25cc888b86
commit 357453eed4

View File

@@ -95,6 +95,7 @@
try {
await fetch(`${target}/api/status`, { mode: "no-cors", cache: "no-store" });
log("HTTPS reachable, redirecting");
document.cookie = "pikit_https_ok=1; Path=/; Max-Age=2592000; SameSite=Lax";
window.location = target;
} catch (e) {
log("HTTPS probe failed; staying on onboarding page");