diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-03-16 14:59:00 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-03-16 11:59:00 -0700 |
commit | 24848f9d6a92eb1e09189c358636fd1ba32fa6d6 (patch) | |
tree | a0061bcefe49daa3104f57fc77370facae03a53b /webapp/utils/markdown.jsx | |
parent | d757645c2490dd4f0de16cc32e05551b1476d0a0 (diff) | |
download | chat-24848f9d6a92eb1e09189c358636fd1ba32fa6d6.tar.gz chat-24848f9d6a92eb1e09189c358636fd1ba32fa6d6.tar.bz2 chat-24848f9d6a92eb1e09189c358636fd1ba32fa6d6.zip |
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
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r-- | webapp/utils/markdown.jsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index c84df0fa5..fa9c985c7 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -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; } |