-
+
+ /**
+ * 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();
+
+