Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Using ngrok with React based websites

    App Packaging & Development
    1
    1
    101
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robi
      robi last edited by

      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, 😉

      Life of Advanced Technology

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB