mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Better check of jitsi widget message origin.
This commit is contained in:
parent
a13d58f6c2
commit
9753ee8d82
1 changed files with 6 additions and 1 deletions
|
@ -278,7 +278,12 @@ export default class AppTile extends React.Component {
|
|||
event.origin = event.originalEvent.origin;
|
||||
}
|
||||
|
||||
if (!this.state.widgetUrl.startsWith(event.origin)) {
|
||||
const widgetUrlObj = url.parse(this.state.widgetUrl);
|
||||
const eventOrigin = url.parse(event.origin);
|
||||
if (
|
||||
eventOrigin.protocol !== widgetUrlObj.protocol ||
|
||||
eventOrigin.host !== widgetUrlObj.host
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue