diff --git a/public/nexus/index.html b/public/nexus/index.html index 9389c79b..047e8fa1 100644 --- a/public/nexus/index.html +++ b/public/nexus/index.html @@ -1,277 +1,284 @@ - - - - - - - - + + + + + + + + + Cookie check + + + + + + +
+ +
+ -
- -
- -
- + + /** + * Redirects to the return url. If autoClose is true, then the return url will be opened in a + * new window, and it will be closed automatically when the page loads. + */ + async function redirectToReturnUrl(autoClose) { + const initialReturnUrlStr = new URLSearchParams(window.location.search).get('return_url'); + const returnUrl = initialReturnUrlStr ? new URL(initialReturnUrlStr) : null; - -
⚔ NEW DEPLOYMENT DETECTED — Reloading in 5s…
+ // Prevent potentially malicious URLs from being used + if (returnUrl.protocol.toLowerCase() === 'javascript:') { + console.error('Potentially malicious return URL blocked'); + return; + } - - + // Start the cookie verification process. + verifyCanSetCookies(); + +