"Access has been blocked by CORS policy". Jitsi meet with JWT

Hi all!

I use Jitsi Meet and Rocket.Chat with jwt auth.

Chat on domain test1.domain.com
Jitsi on domain test2.domain.com

JWT token have link to avatar in chat like “https://test1.domain.com/avatars/johny42879r8ds
And jitsi cant’t fetch this with error “Accesshas been blocked by CORS policy” in console. And i don’t have user avatars in Jitsi =(

How fix it?
Thank you advanced

You need to set Access-Control-Allow-Origin on test1

Search for Access-Control-Allow-Origin, CORS and your web server (for example Nginx)