1
0
mirror of https://github.com/moparisthebest/mail synced 2025-01-30 22:50:17 -05:00

Revert "[WO-03-008] Fix no Origin Checks for postMessage Communication (High)"

This reverts commit 2aa166ac19.
This commit is contained in:
Tankred Hase 2015-05-04 14:56:31 +02:00
parent 9454739818
commit bcaef5c330

View File

@ -12,11 +12,6 @@ DOMPurify.addHook('afterSanitizeAttributes', function(node) {
window.onmessage = function(e) {
var html = '';
// ignore messages from other origins to prevent XSS
if (e.origin !== location.origin) {
return;
}
if (e.data.html) {
// display html mail body
html = e.data.html;