Skip to content

Commit 14dd103

Browse files
committed
Disable HostAuthorization middleware in development.
1 parent 75f87bb commit 14dd103

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/application.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939
use BetterErrors::Middleware
4040
BetterErrors.application_root = File.expand_path("..", __dir__)
4141
end
42+
43+
# Disable HostAuthorization middleware in development:
44+
set :host_authorization, allow_if: ->(env) { true }
4245
end
4346

4447
Dir["#{app_path}/config/initializers/*.rb"].sort.each { |f| require f }

0 commit comments

Comments
 (0)