Long time lurker, first time caller.
I just recently updated my failed payment application to Rails 6. Went to use Ngrok to test some webhoooks and got an interesting little error. Now, unless you specify a host in rails 6 everything except for localhost gets blocked. Great new security feature. Buuuut, what if I use ngrok regularly and don't have the paid version so I get a new address every time I run it? It's regex to the rescue.
config/environments/development.rb and then add
config.hosts << /[a-z0-9]+\.ngrok\.io/super simple and awesome.
Thought I'd keep it short.
Have an awesome week.