Jitsi behind the nginx reverse proxy

Hi to everyone!
I got next error when try to use jitsi behind reverse nginx proxy

Access to XMLHttpRequest at '' from origin 'https://jitsi.mydomain.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

in my nginx config I have

 add_header 'Access-Control-Allow-Origin' '*';

Have anybody working nginx reverse proxy config, when jitsi and reverse proxy is too different servers.

jitsi in the local network (as ' is working fine. It’s a fresh installation of the stable version.