Closed sdc50 closed 4 months ago
While we may be able to add logic that takes the ALLOWED_HOSTS
and prepends the scheme (if it's Django > 3) and determine if the scheme should be http
or https
, but I think for now the best approach is the most simple - just provide a variable that the user needs to set on the Docker.
https://stackoverflow.com/questions/38841109/csrf-validation-does-not-work-on-django-using-https