Invalid Host Header when ngrok tries to connect to Angular
I tried the command given below to resolve CORS issue but it shows me error in the console like Invalid host header
ngrok http 8080 -host-header="localhost:8080"
Then the following command works for me:
Firstly destroy the current server and restart it then adding --host 0.0.0.0 --disable-host-check true to the command.