I know this is an existing question, but there is no Clear answer for that.
Google chrome --unsafely-treat-insecure-origin-as-secure, accessing microphone over http not working. It still show the getuserMedia() cannot be accessed over http.
It shows the below warning banner while opening chrome.
"you are using a unsupported command line flag --unsafely-treat-insecure-origin-as-secure="http://example.com". Stability and Security will suffer.
The exact command I run in terminal
google-chrome --unsafely-treat-insecure-origin-as-secure="http://example.com" --user-data-dir="/home/users/myname/chrome-temp-data"
OS Version Ubuntu: 16.04 LTS(64 bit)
Google Chrome Version: Version 63.0.3239.132 (Latest version) (64-bit)
If this is the right command line flag, why am i getting the "unsupported command line" banner ? Is there is anything I'm doing wrong, any thoughts would be much appreciated.
Thanks.
You can use chrome://flags/#unsafely-treat-insecure-origin-as-secure to run Chrome, or use the --unsafely-treat-insecure-origin-as-secure="http://example.com" flag (replacing "example.com" with the origin you actually want to test), which will treat that origin as secure for this session.
According to the note in point #3 here that flag was broken in Chrome 63 but fixed again in 64.
Also, you no longer need the --user-data-dir
flag for it to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With