Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google-chrome --unsafely-treat-insecure-origin-as-secure command line flag not working

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.

like image 763
devansvd Avatar asked Feb 07 '18 07:02

devansvd


People also ask

How do you set unsafely treat insecure origin as secure?

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.


1 Answers

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.

like image 108
CletusW Avatar answered Nov 15 '22 09:11

CletusW