CORS request error

98 views
Skip to first unread message

Sanjay Sajwan

unread,
Jul 10, 2020, 6:28:35 AM7/10/20
to BigBlueButton-dev
I am trying to build a client in react from scratch using react for bigbluebutton.The request is getting failed while making an axios request to create a meeting because of cors.

I tried the solutions mentioned at these forums https://gist.github.com/michiel/1064640 , https://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx made changes in /etc/nginx/sites-enabled at 'location /' according to the solutions mentioned at those forums but got no success. 

Does any one have any idea regarding the changes which needs to be made in order to solve the CORS issue?



Jibon Costa

unread,
Jul 10, 2020, 10:04:24 AM7/10/20
to BigBlueButton-dev
I think you should add header information "/api" block but I don't know how BBB handle. You can try to add in main block under "ssl_dhparam /etc/nginx/ssl/dhp-4096.pem;"

You will find this text (/etc/nginx/sites-available/bigbluebutton):

# HSTS (comment out to enable)
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

So, you can try to add after that & test.

Sanjay Sajwan

unread,
Jul 14, 2020, 1:10:14 AM7/14/20
to BigBlueButton-dev

There is no ssl folder inside nginx
Reply all
Reply to author
Forward
0 new messages