Skip to content

Commit

Permalink
Merge pull request #41 from thisyahlen-deriv/thisyahlen/iframe-sandbo…
Browse files Browse the repository at this point in the history
…x-event-origin

chore: add sandbox
  • Loading branch information
thisyahlen-deriv authored Sep 26, 2024
2 parents be5a659 + 14c9673 commit ef53e62
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 ef53e62

Please sign in to comment.