fix(front): forcer redirection HTTPS vers dev4 après callback ID.not
All checks were successful
build-and-push-ext / build_push (push) Successful in 57s
All checks were successful
build-and-push-ext / build_push (push) Successful in 57s
This commit is contained in:
parent
a8a3d58ed1
commit
6a986028e9
@ -5,6 +5,13 @@ export default function Route() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
const origin = window.location.origin;
|
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")) {
|
if (origin.startsWith("http://local.4nkweb.com:3000")) {
|
||||||
const search = window.location.search || "";
|
const search = window.location.search || "";
|
||||||
const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`;
|
const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user