Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocked host on development environment #236

Closed
Verlich opened this issue May 6, 2024 · 2 comments
Closed

Blocked host on development environment #236

Verlich opened this issue May 6, 2024 · 2 comments

Comments

@Verlich
Copy link

Verlich commented May 6, 2024

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
Copy link

Easy workaround is to just comment out the config entirely

# config.hosts ...

@pcai
Copy link
Contributor

pcai commented Sep 30, 2024

dupe of #203

@pcai pcai closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants