about summary refs log tree commit diff
path: root/public
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-01 20:59:28 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-02-01 20:59:28 +0100
commit098f2bc1e1531a3b3b799e2c58c9a356d4fd253c (patch)
treedf3b5b319976a49ab683a2b0695b6d828f390f9f /public
parentd6f3261c6cb810ea4eb6f74b9ee62af0d94cbd52 (diff)
parentd0d15bf49c52c8329e3333397a9fc5d22341673a (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'public')
-rw-r--r--public/embed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/embed.js b/public/embed.js
index dac507453..d597fd33c 100644
--- a/public/embed.js
+++ b/public/embed.js
@@ -15,7 +15,7 @@
     window.addEventListener('message', function(e) {
       var data = e.data || {};
 
-      if (data.type !== 'setHeight' || !iframes[data.id]) {
+      if (data.type !== 'setHeight' || !iframes[data.id] || window.location.origin !== e.origin || data.id.toString() === '__proto__') {
         return;
       }