This repository was archived by the owner on Aug 16, 2024. It is now read-only.
This repository was archived by the owner on Aug 16, 2024. It is now read-only.
Set up enforced forwarding to https if not running locally #46
Open
Description
It would appear that Heroku doesn't automatically forward HTTP requests to HTTPS, and since we aren't handling the load balancing on the Heroku end we'll need to do this from Django.
There are a few guides for doing exactly this:
- https://elitwilliams.medium.com/how-to-redirect-all-traffic-to-https-from-http-for-django-3-apps-hosted-on-heroku-63f8fbbfab2a
- https://stackoverflow.com/a/49112565/3277713
We'll want to set this up to be disabled locally since that's fine to be over HTTP (and would be difficult to set up HTTPS locally).
Metadata
Metadata
Assignees
Labels
No labels