Merge pull request #579 from coopdevs/allow-production-host
Allow requests from production host
This commit is contained in:
@@ -33,7 +33,8 @@ module Timeoverflow
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user