Browse Source

feat(external_api): set permissions for cross-origin iframe

In Chrome M63 a warning is shown, permissions won't be automatically allowed
afterwards. Reference:
https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes

Setting this early makes us future proof, while working with current versions
too: Chrome < 63 gives an error because it doesn't understand the option and
Firefox seems to ignore it, so both continue to work as before.
j8
Saúl Ibarra Corretgé 8 years ago
parent
commit
46ccefdfe9
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      modules/API/external/external_api.js

+ 1
- 0
modules/API/external/external_api.js View File

@@ -245,6 +245,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
245 245
         const frameName = `jitsiConferenceFrame${id}`;
246 246
 
247 247
         this._frame = document.createElement('iframe');
248
+        this._frame.allow = 'camera; microphone';
248 249
         this._frame.src = this._url;
249 250
         this._frame.name = frameName;
250 251
         this._frame.id = frameName;

Loading…
Cancel
Save