目的: 使得本地映射的域名能被浏览器安全访问,允许调用设备资源 步骤: 在Chrome中导航栏打开 `chrome://flags/#unsafely-treat-insecure-origin-as-secure` 填入hosts域名:如 http://h5-twzc003.local.com 参考: https://medium.com/@Carmichaelize/enabling-the-microphone-camera-in-chrome-for-local-unsecure-origins-9c90c3149339