Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-02-01 20:59:28 +01:00
5 changed files with 34 additions and 3 deletions

View File

@@ -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;
}