Rails `allowed_redirect_hosts` Finally Fixed Subdomain Redirects
The Problem Everyone Has
You're building a multi-tenant SaaS with subdomains. User logs in at www.myapp.com, you redirect them to tenant1.myapp.com. Rails throws this at you:
ActionController::Redirecting::UnsafeRedirectError:
Unsafe redirect to "htt...
anthonyfranco.dev2 min read