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
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
d757645c24
Коммит
24848f9d6a
@@ -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;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user