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 :)