From a91e550eccfc3a9dcbada7553e439890603697dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Djalma=20Ara=C3=BAjo?= Date: Wed, 1 Jul 2026 00:36:21 -0300 Subject: [PATCH] [Bug Fix] Allow non-localhost hosts in docs development env Rails 8's Host Authorization middleware blocks any Host header outside localhost/private IPs by default, so accessing the docs dev server through a VM hostname or Tailscale domain (e.g. devmachine.cloud) gets rejected with "Blocked hosts". Clear config.hosts in development since this is a non-public dev-only environment. --- docs/config/environments/development.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/config/environments/development.rb b/docs/config/environments/development.rb index bad4e910..fe7eb2e1 100644 --- a/docs/config/environments/development.rb +++ b/docs/config/environments/development.rb @@ -15,6 +15,9 @@ # Enable server timing. config.server_timing = true + # Allow requests from any host in development (VM hostnames, tunnels, Tailscale, etc). + config.hosts.clear + # Enable/disable Action Controller caching. By default Action Controller caching is disabled. # Run rails dev:cache to toggle Action Controller caching. if Rails.root.join("tmp/caching-dev.txt").exist?