GetUserMedia () not allowed in localhost - Safari 11

Trying to call getUserMedia from an insecure document.

I am testing safari preview 11. I got this error while trying to run base peer in localhost. Does anyone experience the same thing or is localhost considered an insecure region on safari 11?

Any flag or settings allowing this on safari? I am currently using ngrok to tunnel through https and access it on the same computer.

+7
safari webrtc
source share
1 answer

Update:

Now you can enable this from the Development menu:

Safari WebRTC Development Menu

Select "Allow media capture on insecure sites."


Original answer:

Yes, when using Safari, you will need to start it using HTTPS, even using localhost.

Do you see this error even when using the ngrok tunnel using HTTPS?

+19
source share