mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
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.
This commit is contained in:
committed by
hristoterezov
parent
f86f21beb2
commit
46ccefdfe9
1
modules/API/external/external_api.js
vendored
1
modules/API/external/external_api.js
vendored
@@ -245,6 +245,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||
const frameName = `jitsiConferenceFrame${id}`;
|
||||
|
||||
this._frame = document.createElement('iframe');
|
||||
this._frame.allow = 'camera; microphone';
|
||||
this._frame.src = this._url;
|
||||
this._frame.name = frameName;
|
||||
this._frame.id = frameName;
|
||||
|
||||
Reference in New Issue
Block a user