diff --git a/react/features/base/avatar/components/web/StatelessAvatar.js b/react/features/base/avatar/components/web/StatelessAvatar.js index 57a1b8b17..67c85954f 100644 --- a/react/features/base/avatar/components/web/StatelessAvatar.js +++ b/react/features/base/avatar/components/web/StatelessAvatar.js @@ -3,6 +3,7 @@ import React from 'react'; import { Icon } from '../../../icons'; +import { isGravatarURL } from '../../functions'; import AbstractStatelessAvatar, { type Props as AbstractProps } from '../AbstractStatelessAvatar'; type Props = AbstractProps & { @@ -66,6 +67,7 @@ export default class StatelessAvatar extends AbstractStatelessAvatar { avatar { return new Promise((resolve, reject) => { const image = document.createElement('img'); + if (isGravatarURL(src)) { + image.setAttribute('crossOrigin', ''); + } image.onload = () => resolve(src); image.onerror = reject;