config: whitelist ngrok.io for development.

Add ngrok.io (plus a few more domains) to the hostname whitelist so that
it can be used as a hostname in development. Useful for testing
webhooks.

* https://ngrok.com
This commit is contained in:
evazion
2021-03-11 02:57:08 -06:00
parent 81fe68d392
commit 7bdec9b5fa

View File

@@ -66,4 +66,8 @@ Rails.application.configure do
BetterErrors::Middleware.allow_ip!(IPAddr.new("0.0.0.0/0"))
BetterErrors::Middleware.allow_ip!(IPAddr.new("::/0"))
# https://bigbinary.com/blog/rails-6-adds-guard-against-dns-rebinding-attacks
# hxxps://github.com/rails/rails/pull/33145
config.hosts += [".ngrok.io", ".lvh.me", ".xip.io", ".nip.io"]
end