Skip to content

Commit

Permalink
Merge pull request #42 from adrienne-deriv/remove-same-origin-iframe
Browse files Browse the repository at this point in the history
Remove same origin script attribute when creating logout iframe
  • Loading branch information
thisyahlen-deriv authored Sep 26, 2024
2 parents ef53e62 + f81cd6a commit 33ebe5a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/hooks/useOAuth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ 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(() => {
Expand Down

0 comments on commit 33ebe5a

Please sign in to comment.