django-heroism
django-heroism copied to clipboard
A way for Django to detect an HTTPS request when proxied through a front-end server.
Results
1
django-heroism issues
Sort by
recently updated
recently updated
newest added
With nginx/gunicorn My own middleware contains : ``` if request.META.get('HTTP_X_URL_SCHEME') == "https" or request.META['HTTP_X_FORWARDED_PROTOCOL'] == 'https': request.is_secure = lambda: True else: request.is_secure = lambda: False ```