From 9d67f1168310f597605558699f9ec74afc7dff28 Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Thu, 19 Nov 2020 21:27:33 +0300 Subject: [PATCH] Add permission to plugins --- apps/api/documents/api.js | 2 +- apps/common/main/lib/view/Plugins.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 860f1097a..e31437368 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -877,7 +877,7 @@ iframe.allowFullscreen = true; iframe.setAttribute("allowfullscreen",""); // for IE11 iframe.setAttribute("onmousewheel",""); // for Safari on Mac - iframe.setAttribute("allow", "autoplay"); + iframe.setAttribute("allow", "autoplay; camera; microphone; display-capture"); if (config.type == "mobile") { diff --git a/apps/common/main/lib/view/Plugins.js b/apps/common/main/lib/view/Plugins.js index a1bee256d..cfcc6c050 100644 --- a/apps/common/main/lib/view/Plugins.js +++ b/apps/common/main/lib/view/Plugins.js @@ -210,6 +210,7 @@ define([ this.iframePlugin.align = "top"; this.iframePlugin.frameBorder = 0; this.iframePlugin.scrolling = "no"; + this.iframePlugin.allow = "camera; microphone; display-capture"; this.iframePlugin.onload = _.bind(this._onLoad,this); this.currentPluginFrame.append(this.iframePlugin); @@ -393,6 +394,7 @@ define([ iframe.align = "top"; iframe.frameBorder = 0; iframe.scrolling = "no"; + iframe.allow = "camera; microphone; display-capture"; iframe.onload = _.bind(this._onLoad,this); var me = this;