I want to see my API generated with Google Endpoint locally.
If I run the "Hello world" backend example generated by Android studio and I connect to localhost:8080
and I click on the third link, the browser opens the page where I can test my API.
There I have an error about connection on HTTPS:
The API you are exploring is hosted over HTTP, which can cause problems. Learn how to use Explorer with a local HTTP API.
If I click on "Learn how to..." I'm redirect to this page: https://developers.google.com/explorer-help/#hitting_local_api
If the proposed solution proposed is right, my question is how to open Chrome with these special flags on Windows 10?
I also try to click on the shield in the navigation bar but with no result.
我发现当页面加载该错误时,可以通过右键单击chrome搜索栏最右侧的shieldshape然后单击加载脚本来轻松纠正
I found the right instructions!
Go to, for example:
C:\Program Files (x86)\Google\Chrome\Application
and execute:
chrome.exe --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
It will start a Chrome session in which you can test your API.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.