[英]Using Google Cloud Endpoints API over local HTTP
I am using OSX. 我正在使用OSX。 I have set up my endpoints in my development server.
我已经在开发服务器中设置了端点。 When I visit
localhost:8080/_ah/api/explorer
, I receive this error message: 当我访问
localhost:8080/_ah/api/explorer
,收到以下错误消息:
The API you are exploring is hosted over HTTP, which can cause problems.
您正在探索的API是通过HTTP托管的,这可能会导致问题。 Learn how to use Explorer with a local HTTP API .
了解如何将Explorer与本地HTTP API一起使用 。
The link instructs me to start a Chrome session with special flags as follows : 该链接指示我使用以下特殊标志启动Chrome会话 :
[path-to-Chrome] --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:port
I am confused about where to input this line? 我对在哪里输入此行感到困惑? I assumed that it should be entered into the CLI, so I tried it on the terminal:
我假设应该将其输入CLI,因此我在终端上尝试了它:
$ /Applications/GoogleChrome.app --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
Of course, the response is this: 当然,响应是这样的:
$ -bash: GoogleChrome.app: command not found
After some research, I found that I can launch a Chrome session using the $ google-chrome
command, but this also failed with -bash: google-chrome: command not found
. 经过研究后,我发现可以使用
$ google-chrome
命令启动Chrome会话,但这也因-bash: google-chrome: command not found
而失败。
I also tried to locate Chrome using $ whereis google-chrome
, but this returns no response. 我还尝试使用
$ whereis google-chrome
定位Chrome,但这未返回任何响应。
试试这个: open /Applications/Google\\ Chrome.app --args --user-data-dir=test --unsafely-treat-insecure-origin-as-secure=http://localhost:8080
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.