当我使用ngrok
时,用下面的配置运行ngrok给出的url:
我的本地url是:localhost:8080/someexample
ngrok
url是:http://f07d0862.ngrok.io/
它显示以下错误:
Bad Request - Invalid Hostname HTTP Error 400.
发布于 2015-12-09 23:37:33
您的web服务器正在拒绝该请求,因为它具有不同的主机名。
试试ngrok http -host-header="localhost:8080"
发布于 2019-08-08 18:18:03
这就是您想要的解决方案。
ngrok http 8080 -host-header="localhost:8080"
发布于 2021-01-20 00:22:49
这对我很有效:
ngrok http -host-header=localhost 8080
https://stackoverflow.com/questions/30618415
复制相似问题