‘Access-Control-Allow-Origin’ error

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.

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' '*';
    }

Hello

When I try to edit the nginx on the jisti config file
/var/www/html/nginx.conf

There is no code as location = /http-bind
Thus, I added

location = /http-bind {
add_header ‘Access-Control-Allow-Origin’ ‘*’;
}

Did not work as Nginx did not restart

Can you please assist

vikasiz,

config file here is:
/etc/nginx/sites-available/videoconference.academicum.com.br.conf