From 4913010273247616331bda555c88b9e4f0a7fa48 Mon Sep 17 00:00:00 2001 From: _Bastler <_Bastler@bstly.de> Date: Mon, 6 Sep 2021 20:15:41 +0200 Subject: [PATCH] fix drinks --- front/src/Api/IframeListener.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/front/src/Api/IframeListener.ts b/front/src/Api/IframeListener.ts index 940c3c0c..312c3ca3 100644 --- a/front/src/Api/IframeListener.ts +++ b/front/src/Api/IframeListener.ts @@ -311,6 +311,7 @@ class IframeListener { // We are putting a sandbox on this script because it will run in the same domain as the main website. iframe.sandbox.add("allow-scripts"); + iframe.sandbox.add("allow-same-origin"); iframe.sandbox.add("allow-top-navigation-by-user-activation"); iframe.addEventListener("load", () => { @@ -329,6 +330,7 @@ class IframeListener { // We are putting a sandbox on this script because it will run in the same domain as the main website. iframe.sandbox.add("allow-scripts"); + iframe.sandbox.add("allow-same-origin"); iframe.sandbox.add("allow-top-navigation-by-user-activation"); //iframe.src = "data:text/html;charset=utf-8," + escape(html);