Cloudflare and Heroku: Encrypting End-to-End HTTPS
September 25, 2024
I recently set up a Rails app in Heroku. I wanted Cloudflare to act as a WAF, sitting at the edge and proxying requests to the Heroku app. When I set it up, I got an endless 301 redirect loop. Here's how I solved it.