Skip to content

A platform for community discussion. Free, open, simple.

FIX: Allow all subdomains of localhost in development (#17089)

Daniel Waterworthd7886e4d1801
diff --git a/config/environments/development.rb b/config/environments/development.rb
index bbac74b1a91..6f087acd595 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -111,5 +111,5 @@ Discourse::Application.configure do
end
end
- config.hosts << /\A(([a-z-]+)\.)*localhost(\:\d+)?\Z/
+ config.hosts << /\A(([a-z0-9-]+)\.)*localhost(\:\d+)?\Z/
end