"Create-react-app Invalid Host Header"
1. When you enable the ' Proxy ' option, you opt-in to a more strict set of host checks. This was necessary because leaving the backend open to remote hosts makes your computer vulnerable to DNS rebinding attacks .
You'll see this error in the browser after enabling the ' Proxy ' option:
>invalid Host Header 2, to work around it, you can specify your public development Host in a file called '. Env.developme NT ' in the root of your project: ' host=mypublicdevhost.com '
If You restart the development server now and load the app from the specified host, it should work. 3, if you are still have issues or If you ' re using a more exotic environment like a cloud editor, you can bypass the host Check completely by adding a line to '. Env.development.local '. Dangerously_disable_host_check=true
Create-react-app's Invalid Host Header