diff --git a/network/communication-interfaces/window-interface.ts b/network/communication-interfaces/window-interface.ts index bd313851..3a42d64a 100644 --- a/network/communication-interfaces/window-interface.ts +++ b/network/communication-interfaces/window-interface.ts @@ -65,7 +65,7 @@ export class WindowInterface extends CommunicationInterface { // is parent document, has iframe if (window instanceof HTMLIFrameElement) { this.#isChild = false; - window.setAttribute("sandbox", "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox") + window.setAttribute("sandbox", "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation") this.#windowOrigin = new URL(window.src).origin; windowOriginURL = new URL(window.src); this.logger.debug("initializing as parent window, child iframe origin: " + this.#windowOrigin) @@ -237,4 +237,4 @@ export class WindowInterface extends CommunicationInterface { }) } -} \ No newline at end of file +}