Onboarding: set https cookie + auto redirect
This commit is contained in:
@@ -95,6 +95,7 @@
|
|||||||
try {
|
try {
|
||||||
await fetch(`${target}/api/status`, { mode: "no-cors", cache: "no-store" });
|
await fetch(`${target}/api/status`, { mode: "no-cors", cache: "no-store" });
|
||||||
log("HTTPS reachable, redirecting");
|
log("HTTPS reachable, redirecting");
|
||||||
|
document.cookie = "pikit_https_ok=1; Path=/; Max-Age=2592000; SameSite=Lax";
|
||||||
window.location = target;
|
window.location = target;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log("HTTPS probe failed; staying on onboarding page");
|
log("HTTPS probe failed; staying on onboarding page");
|
||||||
|
|||||||
Reference in New Issue
Block a user