From d5e0c18629ef264d89345df78397792b99e56c19 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 19 Aug 2020 14:16:03 +0300 Subject: [PATCH] Fix Bug 46235. Fix rev. c13d0dc8e9903fbe2d306eecf8da1895f5fff016 --- apps/common/Gateway.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/Gateway.js b/apps/common/Gateway.js index bca4a0bc3..e36822565 100644 --- a/apps/common/Gateway.js +++ b/apps/common/Gateway.js @@ -135,7 +135,7 @@ if (Common === undefined) { var _onMessage = function(msg) { // TODO: check message origin - if (msg.origin !== window.parentOrigin) return; + if (msg.origin !== window.parentOrigin && msg.origin !== window.location.origin) return; var data = msg.data; if (Object.prototype.toString.apply(data) !== '[object String]' || !window.JSON) {