Comments (12)
This is not jicofo, this is jitsi-videobridge that is serving jitsi-meet web app using jetty.
There is no option currently to change cross-origin.
In order to add it you need to modify where the bosh servlet is initialized:
https://github.com/jitsi/jitsi-videobridge/blob/c6acc4aea85c7984ab713ad19d54bc0fc8ac0aa4/src/main/java/org/jitsi/videobridge/rest/PublicRESTBundleActivator.java#L220
Something like the solution described here:
https://stackoverflow.com/questions/29969996/set-access-control-allow-origin-in-jetty
And of course, it needs adding the maven artifact containing CrossOriginFilter:
org.eclipse.jetty
jetty-servlets
from jicofo.
This is a jitsi-videobridge issue.
But what are you trying to achieve, having jvb and jicofo on different machines? Having multiple bridges?
I suppose, there are different solutions for your problem that can be implemented without changing the code for any of the components.
from jicofo.
Thanks so much, We want to add video conference in webapp with jitsi, in my first demo, the jvb and jicofo are in same server, but the webapp served on other machine, so i need jitsi support CORS.
I will check the jvb document, thank you @damencho .
from jicofo.
Thanks so much, We want to add video conference in webapp with jitsi, in my first demo, the jvb and jicofo are in same server, but the webapp served on other machine, so i need jitsi support CORS.
I don't think there's any need for CORS in any of the jitsi components. The web-app only communicates (via http) with prosody, and we use a proxy for "/http-bind" instead.
from jicofo.
@bgrozev when i request /http-bind directly, Jetty response with Access Control Allow Origin error.
from jicofo.
@bgrozev And after i config nginx with this guide, Nginx response with BOSH-Connection failed: host-unknown
.
from jicofo.
Look at the request in the "network" tab.
from jicofo.
http-bind is proxied, but Jetty strips all of the headers from Prosody, so even configuring Prosody itself to produce the relevant CORS headers doesn't help.
In the past via the NGINX strategy it was possible to allow a remote origin to connect via BOSH to the videobridge endpoints.
I've tried building a new jitsi-videobridge with a CrossOriginFilter adding those headers in, but the bridge just hangs the moment that filter is added to the servletContextHandler.
Does anyone have a reasonable workaround here?
I think perhaps at the moment it seems like disabling the HTTP service and jetty, and just serving the videobridge itself via port 443 is the most reasonable solution, but it would be great to work through jetty itself.
from jicofo.
I've tried building a new jitsi-videobridge with a CrossOriginFilter adding those headers in, but the bridge just hangs the moment that filter is added to the servletContextHandler.
Did you use this patch? jitsi/jitsi-videobridge#675
from jicofo.
@bgrozev, That worked great, thankyou!
from jicofo.
@raghbendranayak please do not hijack issues and post the same question over and over again. You are not increasing your chances of an answer, but the other way around.
from jicofo.
Probably outdated, re-open if necessary
from jicofo.
Related Issues (20)
- Whole bridge terminates upon Unknown endpoint jvb error HOT 6
- Conference is not moved to another jvb when JVB's XMPP connection is broken HOT 1
- Not applayed some parametrs from jicofo.conf HOT 4
- Failed to start jicofo HOT 2
- Can't find certificate HOT 1
- Temporarily failing bridge healthcheck permanently leaves Jitsi without any operational bridges HOT 6
- Jicofo does not recover after oom-kill HOT 3
- does not provide a MUC (XEP-45) service. HOT 3
- Failed to grant owner status: Bare JID expected, got full JID HOT 8
- Room remains open after destroy HOT 4
- Jicofo reinvite Jigasi transcriber on failure HOT 7
- Question about potential issue with Colibr2's transport update HOT 2
- Bridge stress level unaffected by RecentlyAddedEndpoints, participants assigned to single videobridge HOT 1
- Something wrong in new installation with secure domain , few Important changes are not clear/updated in documentation HOT 1
- java.lang.NullPointerException HOT 1
- Race condition on startup leads to NPEs and failed requests HOT 2
- jicofo 1.0-934-1 installs garbage into /etc/logrotate.d/ HOT 1
- Debian dpkg throws warnings trying to delete /etc/logrotate.d/jicofo HOT 2
- The participant counter will not updated when a meeting has ended HOT 1
- Jicofo stats do not clean up after update to jicofo 1.0-940-1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jicofo.