Procházet zdrojové kódy

external_api: filter postis events origin

j8
Saúl Ibarra Corretgé před 4 roky
rodič
revize
af5d4c850b
3 změnil soubory, kde provedl 40 přidání a 6 odebrání
  1. 1
    0
      modules/API/external/external_api.js
  2. 38
    5
      package-lock.json
  3. 1
    1
      package.json

+ 1
- 0
modules/API/external/external_api.js Zobrazit soubor

@@ -278,6 +278,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
278 278
         this._transport = new Transport({
279 279
             backend: new PostMessageTransportBackend({
280 280
                 postisOptions: {
281
+                    allowedOrigin: new URL(this._url).origin,
281 282
                     scope: `jitsi_meet_external_api_${id}`,
282 283
                     window: this._frame.contentWindow
283 284
                 }

+ 38
- 5
package-lock.json Zobrazit soubor

@@ -3100,13 +3100,12 @@
3100 3100
       }
3101 3101
     },
3102 3102
     "@jitsi/js-utils": {
3103
-      "version": "1.0.0",
3104
-      "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-1.0.0.tgz",
3105
-      "integrity": "sha512-at9GPMP7IL0v6QS1Gs9c5MbbiN2AT0uKzsgKM8qS2wqXxqvpfT3p4U3+LH2IUyXiHlkmvlBMcNM02MltBdyRmQ==",
3103
+      "version": "1.0.1",
3104
+      "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-1.0.1.tgz",
3105
+      "integrity": "sha512-Lj4SKc3TBJAdAyNoY03BfYiHSXE3cesZMnkzTna9xSkhWVq/ftWUFc6qw6aQj4fPrgbqysyim7AMJnuKBoLaUw==",
3106 3106
       "requires": {
3107 3107
         "bowser": "2.7.0",
3108
-        "js-md5": "0.7.3",
3109
-        "postis": "2.2.0"
3108
+        "js-md5": "0.7.3"
3110 3109
       },
3111 3110
       "dependencies": {
3112 3111
         "js-md5": {
@@ -11008,6 +11007,23 @@
11008 11007
         "strophejs-plugin-disco": "0.0.2",
11009 11008
         "strophejs-plugin-stream-management": "github:jitsi/strophejs-plugin-stream-management#001cf02bef2357234e1ac5d163611b4d60bf2b6a",
11010 11009
         "webrtc-adapter": "7.5.0"
11010
+      },
11011
+      "dependencies": {
11012
+        "@jitsi/js-utils": {
11013
+          "version": "1.0.0",
11014
+          "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-1.0.0.tgz",
11015
+          "integrity": "sha512-at9GPMP7IL0v6QS1Gs9c5MbbiN2AT0uKzsgKM8qS2wqXxqvpfT3p4U3+LH2IUyXiHlkmvlBMcNM02MltBdyRmQ==",
11016
+          "requires": {
11017
+            "bowser": "2.7.0",
11018
+            "js-md5": "0.7.3",
11019
+            "postis": "2.2.0"
11020
+          }
11021
+        },
11022
+        "js-md5": {
11023
+          "version": "0.7.3",
11024
+          "resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz",
11025
+          "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
11026
+        }
11011 11027
       }
11012 11028
     },
11013 11029
     "libflacjs": {
@@ -15275,6 +15291,23 @@
15275 15291
       "from": "github:jitsi/rtcstats#v6.1.3",
15276 15292
       "requires": {
15277 15293
         "@jitsi/js-utils": "1.0.0"
15294
+      },
15295
+      "dependencies": {
15296
+        "@jitsi/js-utils": {
15297
+          "version": "1.0.0",
15298
+          "resolved": "https://registry.npmjs.org/@jitsi/js-utils/-/js-utils-1.0.0.tgz",
15299
+          "integrity": "sha512-at9GPMP7IL0v6QS1Gs9c5MbbiN2AT0uKzsgKM8qS2wqXxqvpfT3p4U3+LH2IUyXiHlkmvlBMcNM02MltBdyRmQ==",
15300
+          "requires": {
15301
+            "bowser": "2.7.0",
15302
+            "js-md5": "0.7.3",
15303
+            "postis": "2.2.0"
15304
+          }
15305
+        },
15306
+        "js-md5": {
15307
+          "version": "0.7.3",
15308
+          "resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz",
15309
+          "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ=="
15310
+        }
15278 15311
       }
15279 15312
     },
15280 15313
     "run-async": {

+ 1
- 1
package.json Zobrazit soubor

@@ -32,7 +32,7 @@
32 32
     "@atlaskit/theme": "7.0.2",
33 33
     "@atlaskit/toggle": "5.0.14",
34 34
     "@atlaskit/tooltip": "12.1.13",
35
-    "@jitsi/js-utils": "1.0.0",
35
+    "@jitsi/js-utils": "1.0.1",
36 36
     "@microsoft/microsoft-graph-client": "1.1.0",
37 37
     "@react-native-community/async-storage": "1.3.4",
38 38
     "@react-native-community/google-signin": "3.0.1",

Načítá se…
Zrušit
Uložit