Created
February 19, 2018 19:17
-
-
Save xola139/906cff7d4c2460e6de1dd6998386a0d8 to your computer and use it in GitHub Desktop.
When Invalid Host Header when ngrok tries to connect to Angular or React dev server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When Invalid Host Header when ngrok tries to connect to Angular or React dev server use this form for run ngrok. | |
ngrok http 8080 -host-header="localhost:8080" | |
ngrok http --host-header=rewrite 8080 |
All i do is (on Angular side) ng serve --disable-host-check
Is it a bad approach?
Does anyone know how to get this working with a custom URL?
@liquidvisual, it's probably irrelevant now. But I got ngrok working for a custom URL with the following config:
authtoken: <token>
version: 2
region: us
tunnels:
<tunnel-name>:
addr: https://mydomain.com
host_header: mydomain.com
proto: http
hostname: <ngrok-host>
It crashes ngrok on my end
Thanks for this, it fixed my issue.
There was a question about how to do this with a custom URL.
ngrok http --subdomain {{subdomain}} --host-header=rewrite {{port}}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i get this
polyfills.js:5503 WebSocket connection to '**censored**' failed: WebSocketClient @ polyfills.js:5503 polyfills.js:6504 [webpack-dev-server] Event logger @ polyfills.js:6504 polyfills.js:6494 [webpack-dev-server] Trying to reconnect..
it is on a loop