diff --git a/webapp/components/post_view/components/post_attachment.jsx b/webapp/components/post_view/components/post_attachment.jsx index 1b2cddcd6b..57335b94a0 100644 --- a/webapp/components/post_view/components/post_attachment.jsx +++ b/webapp/components/post_view/components/post_attachment.jsx @@ -184,7 +184,6 @@ class PostAttachment extends React.Component { author.push( ); @@ -271,7 +269,6 @@ class PostAttachment extends React.Component { className='attachment__thumb-container' > diff --git a/webapp/components/post_view/components/post_attachment_opengraph.jsx b/webapp/components/post_view/components/post_attachment_opengraph.jsx index 13171202a5..da85905c04 100644 --- a/webapp/components/post_view/components/post_attachment_opengraph.jsx +++ b/webapp/components/post_view/components/post_attachment_opengraph.jsx @@ -193,7 +193,6 @@ export default class PostAttachmentOpenGraph extends React.Component { element = this.wrapInSmallImageContainer( { this.smallImageElement = img; diff --git a/webapp/components/post_view/components/post_image.jsx b/webapp/components/post_view/components/post_image.jsx index 6fe954e990..9a761bfcaf 100644 --- a/webapp/components/post_view/components/post_image.jsx +++ b/webapp/components/post_view/components/post_image.jsx @@ -67,7 +67,6 @@ export default class PostImageEmbed extends React.Component { return ( ); @@ -76,7 +75,6 @@ export default class PostImageEmbed extends React.Component { return ( ); diff --git a/webapp/components/profile_picture.jsx b/webapp/components/profile_picture.jsx index 737a4400bd..7a5f892dbf 100644 --- a/webapp/components/profile_picture.jsx +++ b/webapp/components/profile_picture.jsx @@ -69,7 +69,6 @@ export default class ProfilePicture extends React.Component { width={this.props.width} height={this.props.width} src={this.props.src} - crossOrigin='anonymous' /> @@ -83,7 +82,6 @@ export default class ProfilePicture extends React.Component { width={this.props.width} height={this.props.width} src={this.props.src} - crossOrigin='anonymous' /> diff --git a/webapp/components/profile_popover.jsx b/webapp/components/profile_popover.jsx index e21716cb36..c7d45474f7 100644 --- a/webapp/components/profile_popover.jsx +++ b/webapp/components/profile_popover.jsx @@ -182,7 +182,6 @@ export default class ProfilePopover extends React.Component { height='128' width='128' key='user-popover-image' - crossOrigin='anonymous' /> ); diff --git a/webapp/tests/formatting_imgs.test.jsx b/webapp/tests/formatting_imgs.test.jsx index fac9a755fe..604472671c 100644 --- a/webapp/tests/formatting_imgs.test.jsx +++ b/webapp/tests/formatting_imgs.test.jsx @@ -11,7 +11,7 @@ describe('Markdown.Imgs', function() { it('Inline mage', function(done) { assert.equal( Markdown.format('![Mattermost](/images/icon.png)').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -20,7 +20,7 @@ describe('Markdown.Imgs', function() { it('Image with hover text', function(done) { assert.equal( Markdown.format('![Mattermost](/images/icon.png "Mattermost Icon")').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -29,7 +29,7 @@ describe('Markdown.Imgs', function() { it('Image with link', function(done) { assert.equal( Markdown.format('[![Mattermost](../../images/icon-76x76.png)](https://github.com/mattermost/platform)').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -38,7 +38,7 @@ describe('Markdown.Imgs', function() { it('Image with width and height', function(done) { assert.equal( Markdown.format('![Mattermost](../../images/icon-76x76.png =50x76 "Mattermost Icon")').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); @@ -47,7 +47,7 @@ describe('Markdown.Imgs', function() { it('Image with width', function(done) { assert.equal( Markdown.format('![Mattermost](../../images/icon-76x76.png =50 "Mattermost Icon")').trim(), - '

Mattermost

' + '

Mattermost

' ); done(); diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index fa9c985c78..c84df0fa50 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -152,7 +152,6 @@ 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; }