CORS issue in firefox

1,163 views
Skip to first unread message

Linux Teki

unread,
Sep 9, 2019, 2:39:08 AM9/9/19
to meetecho-janus
Hi All,

I have configured janus set up and using sip gateway for a webrtc-sip audio call. it is working fine in chrome browser, where as i'm getting the cors issue in the firefox. I already enabled the cors setting with '*' in Janus.jcfg, although the issue persists. Attaching the screenshot of the same. Kindly suggest with some solution.


Regards,
Arvind
janus_ff error.png

Linux Teki

unread,
Sep 9, 2019, 7:43:12 AM9/9/19
to meetecho-janus


I found that my problem was that the server I've sent the cross request to had a certificate that was not trusted.

If you want to connect to a cross domain with https, you have to add an exception for this certificate first. Firefox will not add the exception by itself as like chrome

You can do this by visiting the blocked link appeared in console(like: https://IP:8089/janus) and adding the exception to the browser.

Hope it helps someone :)

Kirill Taran

unread,
Apr 24, 2020, 1:16:10 PM4/24/20
to meetecho-janus
This is actually useful information, I wish I knew it yesterday. Somehow, the message in Firefox is a little bit misleading and saying about generic CORS problem.
But the problem really is about certificate and Chrome says it more directly (for me it doesn't make automatic exception, probably this depends on settings).


> You can do this by visiting the blocked link appeared in console(like: https://IP:8089/janus) and adding the exception to the browser.
Also, it is possible to sign the certificate with your own testing CA and import the root certificate into a browser. It could be more convenient.
Here is the recipe: https://stackoverflow.com/questions/7580508/getting-chrome-to-accept-self-signed-localhost-certificate

понедельник, 9 сентября 2019 г., 13:43:12 UTC+2 пользователь Linux Teki написал:
Reply all
Reply to author
Forward
0 new messages