I'm making a web app that uses WebRTC
but it requires https
. Is there any way to turn off SSL check on Chrome and Firefox for localhost only or is there any way to make use of WebRTC
without https
? Thanks.
Chrome has chrome://flags/#allow-insecure-localhost which will ignore certificate errors on localhost. This makes development much easier.
As @vcsjones said
Both Chrome and Firefox treat localhost as a secure context, so localhost should have access to secure context only features like webcam, geolocation, and WebRTC.
It is correct. However, Firefox changed (since Firefox 42) mozSrcObject
to srcObject
. I changed it to that and it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With