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: (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: ‘’, it get the error:

Access to XMLHttpRequest at ‘’ 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 ‘,’, but only one is allowed.

If I use websocket: ‘wss://’, it get the error:

WebSocket connection to ‘wss://’ 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!