From ee53d8f0b8efd4c143532935b18de4b6705b7eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sun, 28 Mar 2021 17:21:10 +0200 Subject: [PATCH] Hiding iframe in prod --- front/src/Api/IframeListener.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/front/src/Api/IframeListener.ts b/front/src/Api/IframeListener.ts index 85ee612d..c875ebbb 100644 --- a/front/src/Api/IframeListener.ts +++ b/front/src/Api/IframeListener.ts @@ -144,6 +144,7 @@ class IframeListener { // production code const iframe = document.createElement('iframe'); iframe.id = this.getIFrameId(scriptUrl); + iframe.style.display = 'none'; // 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');