From 043a0e03d1bcafa0fc6358452f5a78b9b98125f2 Mon Sep 17 00:00:00 2001 From: Kaladaran Date: Mon, 20 May 2024 22:09:34 +0200 Subject: [PATCH] fix HTTP_X_FORWARDED_PROTO --- marbas/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/marbas/settings.py b/marbas/settings.py index 7db6710..41ce138 100644 --- a/marbas/settings.py +++ b/marbas/settings.py @@ -33,6 +33,8 @@ CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(",") CSRF_TRUSTED_ORIGINS = [] if not any(CSRF_TRUSTED_ORIGINS) else CSRF_TRUSTED_ORIGINS CORS_ALLOWED_ORIGINS = os.environ.get("CORS_ALLOWED_ORIGINS", "").split(",") CORS_ALLOWED_ORIGINS = [] if not any(CORS_ALLOWED_ORIGINS) else CORS_ALLOWED_ORIGINS +if not DEBUG: + SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') # Application definition