From 7145570facc9e5e9bbc421ae884cd04954a8fb39 Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Sat, 15 Mar 2025 01:49:36 +0330 Subject: [PATCH] setting to avoid gateway post problem --- backend/core/settings/development.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/core/settings/development.py b/backend/core/settings/development.py index 0d71bb0..328ed4a 100644 --- a/backend/core/settings/development.py +++ b/backend/core/settings/development.py @@ -13,4 +13,11 @@ MEDIA_URL = '/shop_media/' MEDIA_ROOT = 'app/media' STATIC_URL = '/shop_static/' -STATIC_ROOT = 'app/static' \ No newline at end of file +STATIC_ROOT = 'app/static' + +# ============================================================================== +# to avoid gateway post problem +# ============================================================================== + +USE_X_FORWARDED_HOST = True +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') \ No newline at end of file