Error when connect to self-hosted Jitsi from localhost (or any other host) with Jitsi Docker

Hi All,

I’m having a problem with Jitsi but haven’t figured out a solution yet.
I am using docker to build Jitsi and Jibri, it worked, I can use Jitsi, Jibri for recorder on my domain is: https://meet.123.com (edit hosts file on my PC).Now, I need to connect to my Jitsi server from my website, then the problem starts.
If I connect use bosh: ‘https://meet.123.com/http-bind’, it get the error:

Access to XMLHttpRequest at ‘https://meet.123.com/http-bind’ from origin ‘null’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘https://meet.123.com, meet.123.com’, but only one is allowed.

If I use websocket: ‘wss://meet.123.com/xmpp-websocket’, it get the error:

WebSocket connection to ‘wss://meet.123.com/xmpp-websocket’ failed: Error during WebSocket handshake: Unexpected response code: 403

I think the reason is due to the nginx configuration. Has anyone had the same problem when using jitsi docker or not?
And does anyone have a solution to this problem or not? Help me. Thank you all!