Configure ngrok’s CORS headers

I just stumbled across this issue today and was able to resolve it by starting ngrok and including the --host-header flag.

ngrok http --host-header=rewrite 3000

From the docs:

Use the --host-header switch to rewrite incoming HTTP requests.

If rewrite is specified, the Host header will be rewritten to match
the hostname portion of the forwarding address.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)