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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user