Using ngrok with React based websites

The problem :

When we have a react.js based site (hosted on port 8000) and ngrok it for development purposes we get

Invalid Host Header 

The fix is to override the header on reflection:

ngrok http 8000 -host-header="localhost:8000"

 

That’s it

😉 nJoy

Leave a Reply

Your email address will not be published. Required fields are marked *