Skip to content

Instantly share code, notes, and snippets.

@ibeeger
Last active May 25, 2018 02:57
Show Gist options
  • Save ibeeger/1096b446c8488dd3b1f989775383e1c0 to your computer and use it in GitHub Desktop.
Save ibeeger/1096b446c8488dd3b1f989775383e1c0 to your computer and use it in GitHub Desktop.
更新中

--unsafely-treat-insecure-origin-as-secure=http://domain

忽略https校验,在业务中有时候会获取用户的摄像头、话筒等权限 也就是getUserMedia api,因为该权限获取在 47以上的版本就必须是https下才能获取,可能在开发过程中如果不知道怎么配置https 证书,可以用这个参数 ,另外方式就是 localhost 会自动忽略

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --unsafely-treat-insecure-origin-as-secure=http://xxxxx.com --user-data-dir=/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment