operating system: OS X El Capitan
I am running an app locally using App Engine in development mode on my computer. And I want through chrome to access the API explorer "localhost:8080/_ah/api/explorer", but it gives me an error because chrome expects https connection and my app running local only gives http.
https://developers.google.com/explorer-help/#hitting_local_api according to this article the solution is:
[path-to-Chrome] --user-data-dir=test --unsafely-treat-insecure-origin-as-secure= http://localhost:port
I've already tried running things like: open -a "Google Chrome" --args --unsafely-treat-insecure-origin-as-secure= http://localhost:8080/_ah/api/explorer
but I can't get it to work, I wonder what is the correct way to run in the terminal to make chrome run in non-secure mode:
[path-to-Chrome] --user-data-dir=test --unsafely-treat-insecure-origin-as-secure= http://localhost:port
or is there any other way to do it.
As you mentioned, due to security updates, the API can only be launched by enabling the insecure origin with the following command in the terminal:
When launching chrome it has two parameters:
Which is the path where the temporary user information will be saved, it must be a folder that has full access (read and write)
Which is where you put the address of your application that will be enabled, in most cases it is http://localhost:NumeroPuerto
Another thing you can do if you don't want to go through all these steps is to download a version of chrome or try your API in another browser such as Edge.
In Edge you just have to enable insecure content by clicking on the image to the right of the address
And click on the option "See all content"
*UPDATE I already saw that it is OSX
In Firefox the process is similar except that the image where you have to click is to the left of the address and in the third step you have to click on the option "Security disabled for now"
You also have to take into account that if there is an error in your API it will not be shown, if you use the launcher, you can see the log to see if there is an error.