Setting up CORS headers Access-Control-Allow-Origin on Kurento

150 views
Skip to first unread message

Remus Negrota

unread,
Feb 21, 2017, 4:32:08 AM2/21/17
to kurento
Is there any way that I can setup CORS with Kurento similar to the way you would setup an Apache server for example, from a config file?

I'm trying to make a simple AJAX call from another domain to check if Kurento is up and running and the I'm getting the response that Access-Control-Allow-Origin is not present.

Micael Gallego

unread,
Feb 21, 2017, 11:32:58 AM2/21/17
to kur...@googlegroups.com
As far as I know, Kurento doesn't support CORS in its websocket interface.

Best

On Tue, Feb 21, 2017 at 10:32 AM, Remus Negrota <remusn...@gmail.com> wrote:
Is there any way that I can setup CORS with Kurento similar to the way you would setup an Apache server for example, from a config file?

I'm trying to make a simple AJAX call from another domain to check if Kurento is up and running and the I'm getting the response that Access-Control-Allow-Origin is not present.

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/9c93df03-61b1-4dcc-bce3-c8bf4a934cb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dobes Vandermeer

unread,
Feb 22, 2017, 5:29:15 PM2/22/17
to kurento

Generally I would think you won't communicate with the kurento websocket directly from the internet, it should be hidden behind a firewall.  Only the media streaming ports would be accessible, during a WebRTC session.

If you do need this, you could run an nginx reverse proxy in front of kurento and add those headers via nginx configuration.
Reply all
Reply to author
Forward
0 new messages