Skip to content

Commit

Permalink
chore: add sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Sep 26, 2024
1 parent be5a659 commit 14c9673
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useOAuth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 14c9673

Please sign in to comment.