PLT-3181 Added crossorigin='anonymous' to all external images (#5774)

* PLT-3181 Added crossorigin='anonymous' to all external images

* Fixed image unit tests

* Added crossorigin='anonymous' to a few more places
Этот коммит содержится в:
Harrison Healey
2017-03-16 14:59:00 -04:00
коммит произвёл Corey Hulen
родитель d757645c24
Коммит 24848f9d6a
7 изменённых файлов: 15 добавлений и 5 удалений

Просмотреть файл

@@ -152,6 +152,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
out += ' height="' + dimensions[1] + '"';
}
out += ' onload="window.markdownImageLoaded(this)" onerror="window.markdownImageLoaded(this)" class="markdown-inline-img"';
out += ' crossorigin="anonymous"';
out += this.options.xhtml ? '/>' : '>';
return out;
}