diff --git a/src/hooks/useOAuth2.ts b/src/hooks/useOAuth2.ts index 544e289..1f3998a 100644 --- a/src/hooks/useOAuth2.ts +++ b/src/hooks/useOAuth2.ts @@ -58,6 +58,7 @@ export const useOAuth2 = (OAuth2GrowthBookConfig: OAuth2GBConfig, WSLogoutAndRed iframe = document.createElement('iframe'); iframe.id = 'logout-iframe'; iframe.style.display = 'none'; + iframe.setAttribute('sandbox', 'allow-same-origin'); document.body.appendChild(iframe); setTimeout(() => {