瀏覽代碼

Merge pull request #3137 from r0hanSH/fix_dom_xss

Fix DOM XSS
Hakim El Hattab 3 年之前
父節點
當前提交
c47bf217be
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      plugin/notes/speaker-view.html

+ 4 - 0
plugin/notes/speaker-view.html

@@ -368,6 +368,10 @@
 
 				window.addEventListener( 'message', function( event ) {
 
+					if (window.location.origin !== event.origin){
+						return;
+					}
+
 					clearTimeout( connectionTimeout );
 					connectionStatus.style.display = 'none';