]> git.openstreetmap.org Git - rails.git/commitdiff
Disable host validation in development mode
authorTom Hughes <tom@compton.nu>
Mon, 25 Nov 2019 12:45:39 +0000 (12:45 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 25 Nov 2019 12:45:39 +0000 (12:45 +0000)
config/environments/development.rb

index e54e3bf06a18a988faa6dd7dddd2c8d9edce5cd8..14bf9b54d800e89624e9f062212d7bd6c11f2c45 100644 (file)
@@ -62,4 +62,7 @@ Rails.application.configure do
   # Use an evented file watcher to asynchronously detect changes in source code,
   # routes, locales, etc. This feature depends on the listen gem.
   config.file_watcher = ActiveSupport::EventedFileUpdateChecker
+
+  # Disable host validation.
+  config.hosts = []
 end