‘Access-Control-Allow-Origin’ error


#1

The following error occurred in chrome, but not in firefox. What’s going on?How?

Failed to load https://******/http-bind?room=e: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://******’ is therefore not allowed access.


#2

This means you are loading your jitsi-meet web using domain AAA.domain.com where you access your bosh connection using BBB.domain.com and your webserver config does not allow this, by not providing any ‘Access-Control-Allow-Origin’ http header for the bosh location.
You either need to make sure you use the same domain for both, or add the http header Access-Control-Allow-Origin to your http-bind location config.
Example nginx config:

    # BOSH
    location = /http-bind {
        ........
        add_header 'Access-Control-Allow-Origin' '*';
    }