getUserMedia() is not allowed in localhost - Safari 11

后端 未结 2 1142
小鲜肉
小鲜肉 2021-02-13 02:38

Trying to call getUserMedia from an insecure document.

I\'m testing safari 11 tech preview. Got this error while trying to run basic peer in localhost. Does

相关标签:
2条回答
  • 2021-02-13 03:05

    In last version of safari, the option to allow media capture from insecure sites is located directly in the web inspector window :

    0 讨论(0)
  • 2021-02-13 03:22

    Update:

    You can now enable this from the Develop menu:

    Select Allow Media Capture on Insecure Sites


    Original Answer:

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

    Do you see get this error even with an ngrok tunnel using HTTPS?

    0 讨论(0)
提交回复
热议问题