Skip to content

Commit

Permalink
Merge pull request #579 from coopdevs/allow-production-host
Browse files Browse the repository at this point in the history
Allow requests from production host
  • Loading branch information
sauloperez authored Jan 5, 2021
2 parents 294c13b + 9c795df commit 6210d22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class Application < Rails::Application
config.active_record.schema_format = :sql

# Guard against DNS rebinding attacks by permitting hosts
config.hosts << /timeoverflow\.(local|org)/
config.hosts << "staging.timeoverflow.org"
config.hosts << 'timeoverflow.local'
config.hosts << 'staging.timeoverflow.org'
config.hosts << 'www.timeoverflow.org'
end
end

0 comments on commit 6210d22

Please sign in to comment.