Skip to content

Commit

Permalink
fix: #1735 add iframe attribute sandbox to allow access to local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Dec 10, 2024
1 parent ce6d694 commit e5edf15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/navigators/IFrameWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ export class IFrameWindow extends AbstractChildWindow {
iframe.width = "0";
iframe.height = "0";

// allow access to local storage
iframe.setAttribute(
"sandbox",
"allow-storage-access-by-user-activation allow-scripts allow-same-origin",
);

window.document.body.appendChild(iframe);
return iframe;
}
Expand Down

0 comments on commit e5edf15

Please sign in to comment.