rails--rails/guides/bug_report_templates
yuuji.yaginuma 6a8519ca89 Specify `hosts` in bug report template.
Host authentication introduced by #33145 allows only "0.0.0.0/0", "::/0"
and "localhost" in the development environment.
4298df00ae/railties/lib/rails/application/configuration.rb (L33)

But `rack-test` use `example.org` for default host.
6c07bf53ad/lib/rack/test.rb (L13)

Therefore, if `hosts` is not specified, host authentication rejects
the request.

In Travis CI, this problem does not occur because `test` is specified
by default in `RAILS_ENV` and `RACK_ENV`.
https://docs.travis-ci.com/user/environment-variables/#default-environment-variables

If user actually use it, env may not always be specified. Explicitly
specify hosts in the file so that it works in any environment.
2018-12-25 08:40:56 +09:00
..
action_controller_gem.rb Update bug report templates 2018-10-28 18:12:48 +01:00
action_controller_master.rb Specify `hosts` in bug report template. 2018-12-25 08:40:56 +09:00
active_job_gem.rb Update bug report templates 2018-10-28 18:12:48 +01:00
active_job_master.rb Update bug report templates 2018-10-28 18:12:48 +01:00
active_record_gem.rb Update bug report templates 2018-10-28 18:12:48 +01:00
active_record_master.rb Update bug report templates 2018-10-28 18:12:48 +01:00
active_record_migrations_gem.rb Update bug report templates 2018-10-28 18:12:48 +01:00
active_record_migrations_master.rb Update bug report templates 2018-10-28 18:12:48 +01:00
benchmark.rb Update bug report templates 2018-10-28 18:12:48 +01:00
generic_gem.rb Revert "Merge pull request #34421 from albertoalmagro/use-assert-not-instead-of-refute" 2018-11-11 12:35:55 +09:00
generic_master.rb Revert "Merge pull request #34421 from albertoalmagro/use-assert-not-instead-of-refute" 2018-11-11 12:35:55 +09:00