Exposing localhost to the internet via tunneling (using ngrok): HTTP error 400: bad request; invalid hostname

后端 未结 6 2274
Happy的楠姐
Happy的楠姐 2020-12-12 08:58

From previous versions of the question, there is this: Browse website with ip address rather than localhost, which outlines pretty much what I\'ve done so far...I\'ve got th

6条回答
  •  半阙折子戏
    2020-12-12 09:34

    Troubleshot this issue with ngrok. In the words of inconshrevable, some applications get angry when they see a different host header than expected.

    Running the following command should fix the problem:

    ngrok http [port] -host-header="localhost:[port]"
    

提交回复
热议问题