3,110 Experience
31 Lessons Completed
0 Questions Solved


For anyone following along using Rails 6.0 - an extra step is required.

If you seeing an error like:

Blocked host:
To allow requests to, add the following to your environment configuration:
config.hosts << ""

Open your config/environments/development.rb file and add:

# Whitelist ngrok connections to development enviroment.
config.hosts << /[a-z0-9]+\.ngrok\.io/

This will whitelist the ngrok subdomain to access your rails host.

credit: Mike Rogers

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.