disable CORS BBB

228 views
Skip to first unread message

Artem

unread,
Feb 28, 2024, 7:32:08 AM2/28/24
to BigBlueButton-Setup
Hello , 

I have a question according to setting up my BBB server . I need to send requests from my we-application to BBB server but i am getting CORS exception . How i can disable CORS ?

sd...@distancelearning.cloud

unread,
Feb 28, 2024, 8:04:04 AM2/28/24
to bigbluebu...@googlegroups.com

You don’t want to disable CORS, then anyone can abuse your application/bbb server

 

Google how to add your app to allow its access via NGINX CORS configuration would be the best approach.

 

If you share the specific errors  you are getting, we may be able to point you in the right direction.   Is the bigbluebutton/api the issue, or the html5 client loading in iframe?  The solution depends on this.

 

Regards,

Stephen

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/2ed6683c-4329-48b6-a3c3-a3edbd8d619dn%40googlegroups.com.

Artem

unread,
Feb 28, 2024, 8:09:04 AM2/28/24
to BigBlueButton-Setup
Adding my application to the access list would be the best solution, but I don’t know how to do this, you can see the errors in the screenshot. Rather, this is an error that comes directly from the bbb server stating that I do not have access.
Screenshot 2024-02-01 at 18.46.22.png

Odejinmi Samuel

unread,
Feb 28, 2024, 8:26:10 AM2/28/24
to bigbluebu...@googlegroups.com
Hi Artem,

Take it, I am giving you for free.

modify /usr/share/bigbluebutton/nginx/web.nginx

                        add_header 'Access-Control-Allow-Origin' 'http://localhost:3000';
                        add_header 'Access-Control-Allow-Credentials' 'true';
                        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, HEAD';

Artem

unread,
Feb 28, 2024, 9:29:08 AM2/28/24
to BigBlueButton-Setup
It works !!!
Thank you very much 🥳

Best,

Artem Petrenko
Reply all
Reply to author
Forward
0 new messages