Chrome doesn't treat insecure origin as secure despite flag

前端 未结 1 1415
北荒
北荒 2021-01-23 02:30

I want to test getUserMedia on an insecure origin on Chrome on Windows. I am starting Chrome in this way as instructed on goo.gl/rStTGz, a link that shows up in the

相关标签:
1条回答
  • 2021-01-23 03:01

    You need to specify the port in the flag as well. Try

    start chrome "http://my-ip:8000/index.html" --unsafely-treat-insecure-origin-as-secure="http://my-ip:8000" --user-data-dir=/tmp
    

    Note that --user-data-dir is no longer required. See the note in point #3 here.

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