Skip to content
Snippets Groups Projects
Unverified Commit 83230234 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by GitHub
Browse files

Add guard against DNS rebinding attacks (#16087)

* Add guard against DNS rebinding attacks

* Fix not to apply to test environment
parent e243092a
No related branches found
No related tags found
No related merge requests found
......@@ -26,4 +26,10 @@ Rails.application.configure do
"ws://#{ENV['REMOTE_DEV'] == 'true' ? host.split(':').first : 'localhost'}:4000"
end
end
unless Rails.env.test?
config.hosts << host if host.present?
config.hosts << web_host if web_host.present?
config.hosts << alternate_domains if alternate_domains.present?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment