diff --git a/config/environments/development.rb b/config/environments/development.rb index e80d22833..0dc1d03c6 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -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