Error: You are using unsupported command line flag
Reported by
axeemhai...@gmail.com,
Oct 5 2017
|
|||
Issue descriptionUserAgent: 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:
,
Oct 5 2017
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...!!
,
Dec 7 2017
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 |
|||
Comment 1 by nyerramilli@chromium.org
, Oct 5 2017