Search code examples
djangoheroku

HTTP redirects to HTTPS even though on free dyno


For some reason, even though I'm using the free dyno, my website still redirects http to https. This is what I want to happen, but I just don't understand why it is, since doesn't this only work for paid dynos?

(I'm using Django and followed this guide to do the redirecting.)

But why does HTTPS work at all? Don't I need a certificate/paid dyno for that? I'm using a Heroku subdomain.


Solution

  • Since you are using a .herokuapp.com subdomain you automatically get HTTPS support, even on free dynos:

    SSL is always enabled for .herokuapp.com for Common Runtime apps.

    You only need to use ACM, SSL, or the SSL Endpoint for custom domains. And yes, this is included with paid dynos.