From 6a986028e9c9ea0b5c51986f53dfa66c495fc5db Mon Sep 17 00:00:00 2001 From: Debian Dev4 Date: Thu, 18 Sep 2025 16:29:08 +0000 Subject: [PATCH] =?UTF-8?q?fix(front):=20forcer=20redirection=20HTTPS=20ve?= =?UTF-8?q?rs=20dev4=20apr=C3=A8s=20callback=20ID.not?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/authorized-client.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/authorized-client.tsx b/src/pages/authorized-client.tsx index 14bbe1f4..6d86b436 100644 --- a/src/pages/authorized-client.tsx +++ b/src/pages/authorized-client.tsx @@ -5,6 +5,13 @@ export default function Route() { useEffect(() => { if (typeof window !== "undefined") { const origin = window.location.origin; + const search = window.location.search || ""; + // Forcer HTTPS et domaine dev4 après retour ID.not + if (!origin.startsWith("https://dev4.4nkweb.com")) { + const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`; + window.location.replace(target); + return; + } if (origin.startsWith("http://local.4nkweb.com:3000")) { const search = window.location.search || ""; const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`;