Invalid Host Header when ngrok tries to connect to React dev server

I’m trying to test my React application on a mobile device. I’m using ngrok to make my local server available to other devices and have gotten this working with a variety of other applications. However, when I try to connect ngrok to the React dev server, I get the error:

Invalid Host Header 

I believe that React blocks all requests from another source by default. Any thoughts?

5 Answers
5

Leave a Comment