diff options
author | Marc Schütz <schuetzm@gmx.net> | 2019-01-20 12:55:31 +0100 |
---|---|---|
committer | Marc Schütz <schuetzm@gmx.net> | 2019-01-23 13:30:35 +0100 |
commit | 4dfb1a39611d97f83dd7431261128def7dbca5fe (patch) | |
tree | 3bdbed5f264b9b595f738fc2b34a6aa82bac11a3 /railties/test/application | |
parent | 9608b180bfb36cb459e4aa8d8116a065046e1915 (diff) | |
download | rails-4dfb1a39611d97f83dd7431261128def7dbca5fe.tar.gz rails-4dfb1a39611d97f83dd7431261128def7dbca5fe.tar.bz2 rails-4dfb1a39611d97f83dd7431261128def7dbca5fe.zip |
Subdomains of localhost are safe against DNS rebinding
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 3e979ea20d..9da3956dda 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -2289,6 +2289,11 @@ module ApplicationTests MESSAGE end + test "the host whitelist includes .localhost in development" do + app "development" + assert_includes Rails.application.config.hosts, ".localhost" + end + private def force_lazy_load_hooks yield # Tasty clarifying sugar, homie! We only need to reference a constant to load it. |