zombocom / derailed_benchmarks

Go faster, off the Rails - Benchmarks for your whole Rails app
2.97k stars 144 forks source link

Blocked host on development environment #236

Closed Verlich closed 1 month ago

Verlich commented 6 months ago

RAILS_ENV=development bundle exec derailed exec perf:mem_over_time Booting: development

Couldn't call app. Bad request to /! Resulted in 403 status.

RESPONSE BODY

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Action Controller: Exception caught</title>
  ...
</head>
<body>

<header>
  <h1>Blocked host: example.org</h1>
</header>
<div id="container">
  <h2>To allow requests to example.org make sure it is a valid hostname (containing only numbers, letters, dashes and dots), then add the following to your environment configuration:</h2>
  <pre>config.hosts &lt;&lt; "example.org"</pre>
</div>

</body>
</html>

Already added example.org, example, and localhost to development.yml and not working.

s01ipsist commented 6 months ago

Easy workaround is to just comment out the config entirely

# config.hosts ...
pcai commented 1 month ago

dupe of #203