New issue
Advanced search Search tips

Issue 771836 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Error: You are using unsupported command line flag

Reported by axeemhai...@gmail.com, Oct 5 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
I'm trying to run the Api Explorer in LocalHost But it always show the Error The API you are exploring is hosted over HTTP, which can cause problems.

So I follow the instruction

Go to File Explorer then paste this to address bar >> C:\Program Files (x86)\Google\Chrome\Application (or just go to where you can find your chrome.exe)

Right click chrome.exe > send to > Desktop (Create Shortcut)
Go to your desktop then find the chrome shortcut you've created.
Rename it to ChromeForTesting (this step is optional)
Right click the shortcut, then Click Properties
At the "Target", paste the following at the end of the link
--user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
so Target should look somewhat similar to this

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
Click Ok..
During testing close all of your opened google chrome browser. Then double click ChromeForTesting shortcut (the one you've created), when a prompt appears, just click ok..
But After compelting this When I run that shortcut it will give the error  you are using unsupported command line flag --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080

I also try to click load unsafe script but this is also not working.

Here is screen shot.
https://i.stack.imgur.com/r5jZJ.png

What is the expected behavior?

What went wrong?
My script is not load and I'm not able to use API Explorer

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.100  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Labels: Needs-Triage-M61
Components: UI>Browser
Labels: M-63
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Win-10 using chrome reported version #61.0.3163.100 and latest canary #63.0.3232.0.

This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Status: WontFix (was: Untriaged)
This is working as expected. The --unsafely-treat-insecure-origin-as-secure flag is not officially supported (as a debugging tool flag) and thus it shows this warning.

Having said that, http://localhost is now treated as a secure origin, so there's no need to set this flag for the scenario described.

Sign in to add a comment