首页 > 其他 > 详细

NotSupportedError Only secure origins are allowed

时间:2019-02-27 14:59:43      阅读:774      评论:0      收藏:0      [点我收藏+]

今天在写H5调用手机摄像头时提示一个错误信息如下:

NotSupportedError Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).
[Deprecation] getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your
application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.

错误大概意思是说:

NotSupportedError仅允许安全起源(请参阅:https://goo.gl/Y0ZkNV)。
[Deprecation] getUserMedia()不再适用于不安全的起源。 要使用此功能,您应该考虑切换您的
应用程序到安全源,例如HTTPS。 有关详细信息,请参阅https://goo.gl/rStTGz。

也就是说访问的网页地址必须是https开头的链接不能是http。

NotSupportedError Only secure origins are allowed

原文:https://www.cnblogs.com/dsn727455218/p/10443678.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!