目的:
使得本地映射的域名能被浏览器安全访问,允许调用设备资源
步骤:
  1. 在Chrome中导航栏打开 `chrome://flags/#unsafely-treat-insecure-origin-as-secure` 
  2. 填入hosts域名:如 http://h5-twzc003.local.com

Chrome中设置安全来源域名-LMLPHP

参考:
https://medium.com/@Carmichaelize/enabling-the-microphone-camera-in-chrome-for-local-unsecure-origins-9c90c3149339
11-24 01:43