Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(virtual-background) fix tainted canvas when using the CDN

Saúl Ibarra Corretgé1395f8455012
diff --git a/react/features/stream-effects/virtual-background/JitsiStreamBackgroundEffect.js b/react/features/stream-effects/virtual-background/JitsiStreamBackgroundEffect.js
index d394e22765..e51f9ff4d7 100644
--- a/react/features/stream-effects/virtual-background/JitsiStreamBackgroundEffect.js
+++ b/react/features/stream-effects/virtual-background/JitsiStreamBackgroundEffect.js
@@ -43,6 +43,7 @@ export default class JitsiStreamBackgroundEffect {
if (this._options.virtualBackground.isVirtualBackground) {
this._virtualImage = document.createElement('img');
+ this._virtualImage.crossOrigin = 'anonymous';
this._virtualImage.src = this._options.virtualBackground.virtualSource;
}
this._model = model;